|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface BenchmarkOptions
Benchmark options applicable to methods annotated as tests.
Optional Element Summary | |
---|---|
int |
benchmarkRounds
Sets the number of benchmark rounds for the test. |
boolean |
callgc
|
int |
concurrency
Specifies the number of threads that should execute the benchmarked method in parallel. |
int |
warmupRounds
Sets the number of warmup rounds for the test. |
public abstract boolean callgc
System.gc()
before each test. This may slow down the tests in
a significant way, so disabling it is sensible in most cases.public abstract int warmupRounds
public abstract int benchmarkRounds
public abstract int concurrency
Allowed values:
CONCURRENCY_SEQUENTIAL
- executed sequentiallyCONCURRENCY_AVAILABLE_CORES
- executed concurrently with as many threads as reported by
Runtime.availableProcessors()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |