Package org.openjdk.jmh.annotations
Annotation Type Measurement
-
@Inherited @Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface Measurement
Measurement annotations allows to set the default measurement parameters for the benchmark.
This annotation may be put at
Benchmark
method to have effect on that method only, or at the enclosing class instance to have the effect over allBenchmark
methods in the class. This annotation may be overridden with the runtime options.- See Also:
Warmup
-
-
Field Summary
Fields Modifier and Type Fields Description static int
BLANK_BATCHSIZE
static int
BLANK_ITERATIONS
static int
BLANK_TIME
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
batchSize
int
iterations
int
time
TimeUnit
timeUnit
-
-
-
-
timeUnit
TimeUnit timeUnit
- Returns:
- Time unit for measurement iteration duration
- Default:
- java.util.concurrent.TimeUnit.SECONDS
-
-