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
public class JMHSample_07_FixtureLevelInvocation extends Object
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 Classes Modifier and Type Class Description static class
JMHSample_07_FixtureLevelInvocation.LaggingState
static class
JMHSample_07_FixtureLevelInvocation.NormalState
static class
JMHSample_07_FixtureLevelInvocation.Scratch
static class
JMHSample_07_FixtureLevelInvocation.Task
-
Constructor Summary
Constructors Constructor Description JMHSample_07_FixtureLevelInvocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
double
measureCold(JMHSample_07_FixtureLevelInvocation.LaggingState e, JMHSample_07_FixtureLevelInvocation.Scratch s)
double
measureHot(JMHSample_07_FixtureLevelInvocation.NormalState e, JMHSample_07_FixtureLevelInvocation.Scratch s)
-
-
-
Method Detail
-
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
public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
- Throws:
org.openjdk.jmh.runner.RunnerException
-
-