Package org.openjdk.jmh.samples
Class JMHSample_07_FixtureLevelInvocation
java.lang.Object
org.openjdk.jmh.samples.JMHSample_07_FixtureLevelInvocation
- Direct Known Subclasses:
JMHSample_07_FixtureLevelInvocation_jmhType_B1
Fixtures have different Levels to control when they are about to run.
Level.Invocation is useful sometimes to do some per-invocation work
which should not count as payload (e.g. sleep for some time to emulate
think time)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
double
measureCold
(JMHSample_07_FixtureLevelInvocation.LaggingState e, JMHSample_07_FixtureLevelInvocation.Scratch s) double
measureHot
(JMHSample_07_FixtureLevelInvocation.NormalState e, JMHSample_07_FixtureLevelInvocation.Scratch s)
-
Constructor Details
-
JMHSample_07_FixtureLevelInvocation
public JMHSample_07_FixtureLevelInvocation()
-
-
Method Details
-
measureHot
public double measureHot(JMHSample_07_FixtureLevelInvocation.NormalState e, JMHSample_07_FixtureLevelInvocation.Scratch s) throws ExecutionException, InterruptedException -
measureCold
public double measureCold(JMHSample_07_FixtureLevelInvocation.LaggingState e, JMHSample_07_FixtureLevelInvocation.Scratch s) throws ExecutionException, InterruptedException -
main
- Throws:
RunnerException
-