public class JPut
Helper functions for JPut users to control the perf tests execution
| Modifier and Type | Field and Description |
|---|---|
static JPut |
INSTANCE
Helper functions for JPut users to control the perf tests execution
|
| Modifier and Type | Method and Description |
|---|---|
void |
markPerformanceTestStart()
This function may be called directly from the performance test to tell JPut that measurement must start from this point,
i.e. not from the beginning of the method. This might be useful when performance test makes some expensive initialization first.
|
public static JPut INSTANCE
Helper functions for JPut users to control the perf tests execution
public void markPerformanceTestStart()
This function may be called directly from the performance test to tell JPut that measurement must start from this point, i.e. not from the beginning of the method. This might be useful when performance test makes some expensive initialization first.
For example:
@PerformanceTest(...)
public void myPerfTest() {
prepareTestData(); // takes some time...
JPut.markPerformanceTestStart(); // Ignore time took by the init
// and here goes the code which will really be measured
...
}