Modifier and Type | Fields and Description |
---|---|
static int |
CONCURRENCY_AVAILABLE_CORES
Runs the benchmark with the number of threads reported
by
Runtime.availableProcessors() . |
static int |
CONCURRENCY_SEQUENTIAL
Sequential runs (no threads).
|
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 static final int CONCURRENCY_SEQUENTIAL
public static final int CONCURRENCY_AVAILABLE_CORES
Runtime.availableProcessors()
.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 © 2017 Carrot Search s.c.. All rights reserved.