Modifier and Type | Optional Element and Description |
---|---|
int |
benchmarkRounds
Sets the number of benchmark rounds for the test.
|
boolean |
callgc |
Clock |
clock
Sets the type of clock to be used for time measuring.
|
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()
.Copyright © 2014 Carrot Search s.c.. All rights reserved.