@Inherited @Target(value={METHOD,TYPE}) @Retention(value=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 all
Benchmark
methods in the class. This annotation may be overridden with
the runtime options.
Warmup
Modifier and Type | Optional Element and Description |
---|---|
int |
batchSize |
int |
iterations |
int |
time |
TimeUnit |
timeUnit |
public abstract int iterations
public abstract int time
public abstract TimeUnit timeUnit
public abstract int batchSize
Copyright © 2012-2014 Oracle. All Rights Reserved.