Package org.openjdk.jmh.annotations
Annotation Type 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 all
Benchmark
methods in the class. This annotation may be overridden with
the runtime options.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
int
int
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Field Details
-
BLANK_ITERATIONS
static final int BLANK_ITERATIONS- See Also:
-
BLANK_TIME
static final int BLANK_TIME- See Also:
-
BLANK_BATCHSIZE
static final int BLANK_BATCHSIZE- See Also:
-
-
Element Details
-
iterations
int iterations- Returns:
- Number of measurement iterations
- Default:
- -1
-
time
int time- Returns:
- Time of each measurement iteration
- Default:
- -1
-
timeUnit
TimeUnit timeUnit- Returns:
- Time unit for measurement iteration duration
- Default:
- SECONDS
-
batchSize
int batchSize- Returns:
- Batch size: number of benchmark method calls per operation
- Default:
- -1
-