public class ScannerLoadTest extends Object
The test opens a number of local pvs. Since there is no load associated on keeping the local pv open, the total cpu load can be assumed to be the scanning. If can also be used to optimize memory consumption.
2012/11/12 - 1,000 pvs, 1.8%; 10,000 pvs, 18.9%; 100,000 pvs, 34%. GC time ~0%
| Constructor and Description |
|---|
ScannerLoadTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static double |
measureLoad(int nSec) |
static void |
profile(int nPvs) |
static void |
waitForZeroLoad(int timeoutSec) |
public static double measureLoad(int nSec)
throws InterruptedException
InterruptedExceptionpublic static void waitForZeroLoad(int timeoutSec)
throws InterruptedException
InterruptedExceptionCopyright © 2015. All rights reserved.