public interface ChainedOptionsBuilder
Modifier and Type | Method and Description |
---|---|
ChainedOptionsBuilder |
addProfiler(Class<? extends Profiler> profiler)
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(Class<? extends Profiler> profiler,
String initLine)
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(String profiler)
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(String profiler,
String initLine)
Add the profiler in the run
|
Options |
build()
Produce the final Options
|
ChainedOptionsBuilder |
detectJvmArgs()
Autodetect forked JVM arguments from the parent VM.
|
ChainedOptionsBuilder |
exclude(String regexp)
Exclude benchmarks from the run
(Can be used multiple times)
|
ChainedOptionsBuilder |
forks(int value)
Number of forks to use in the run
|
ChainedOptionsBuilder |
include(String regexp)
Include benchmark in the run
(Can be used multiple times)
|
ChainedOptionsBuilder |
includeWarmup(String regexp)
What other benchmarks to warmup along the way
|
ChainedOptionsBuilder |
jvm(String path)
Forked JVM to use.
|
ChainedOptionsBuilder |
jvmArgs(String... value)
Forked JVM arguments.
|
ChainedOptionsBuilder |
jvmArgsAppend(String... value)
Append forked JVM arguments:
These options go after other options.
|
ChainedOptionsBuilder |
jvmArgsPrepend(String... value)
Prepend forked JVM arguments:
These options go before any other options.
|
ChainedOptionsBuilder |
measurementBatchSize(int value)
How large measurement batchSize should be?
|
ChainedOptionsBuilder |
measurementIterations(int count)
How many measurement measurementIterations to do
|
ChainedOptionsBuilder |
measurementTime(TimeValue value)
How long each measurement iteration should take?
|
ChainedOptionsBuilder |
mode(Mode mode)
Benchmark mode.
|
ChainedOptionsBuilder |
operationsPerInvocation(int value)
Operations per invocation.
|
ChainedOptionsBuilder |
output(String filename)
Output filename to write the run log to
|
ChainedOptionsBuilder |
param(String name,
String... values)
Set benchmark parameter values.
|
ChainedOptionsBuilder |
parent(Options other)
Override the defaults from the given option.
|
ChainedOptionsBuilder |
result(String filename)
Output filename to write the result to
|
ChainedOptionsBuilder |
resultFormat(ResultFormatType type)
ResultFormatType to use in the run
|
ChainedOptionsBuilder |
shouldDoGC(boolean value)
Should do GC between measurementIterations?
|
ChainedOptionsBuilder |
shouldFailOnError(boolean value)
Should fail on first benchmark error?
|
ChainedOptionsBuilder |
syncIterations(boolean value)
Should synchronize measurementIterations?
|
ChainedOptionsBuilder |
threadGroups(int... groups)
Subgroups thread distribution.
|
ChainedOptionsBuilder |
threads(int count)
Number of threads to run the benchmark in
|
ChainedOptionsBuilder |
timeout(TimeValue value)
How long to wait for iteration execution?
|
ChainedOptionsBuilder |
timeUnit(TimeUnit tu)
Timeunit to use in results
|
ChainedOptionsBuilder |
verbosity(VerboseMode mode)
Control verbosity level.
|
ChainedOptionsBuilder |
warmupBatchSize(int value)
How large warmup batchSize should be?
|
ChainedOptionsBuilder |
warmupForks(int value)
Number of ignored forks
|
ChainedOptionsBuilder |
warmupIterations(int value)
How many warmup iterations to do?
|
ChainedOptionsBuilder |
warmupMode(WarmupMode mode)
Warmup mode to use
|
ChainedOptionsBuilder |
warmupTime(TimeValue value)
How long each warmup iteration should take?
|
Options build()
ChainedOptionsBuilder parent(Options other)
other
- options to base onChainedOptionsBuilder include(String regexp)
regexp
- to match benchmarks againstChainedOptionsBuilder exclude(String regexp)
regexp
- to match benchmark againstChainedOptionsBuilder resultFormat(ResultFormatType type)
type
- resultformat typeChainedOptionsBuilder output(String filename)
filename
- file nameChainedOptionsBuilder result(String filename)
filename
- file nameChainedOptionsBuilder shouldDoGC(boolean value)
value
- flagChainedOptionsBuilder addProfiler(Class<? extends Profiler> profiler)
profiler
- profiler classChainedOptionsBuilder addProfiler(Class<? extends Profiler> profiler, String initLine)
profiler
- profiler classinitLine
- profiler options initialization lineChainedOptionsBuilder addProfiler(String profiler)
profiler
- profiler class name, or profiler aliasChainedOptionsBuilder addProfiler(String profiler, String initLine)
profiler
- profiler class name, or profiler aliasinitLine
- profiler options initialization lineChainedOptionsBuilder verbosity(VerboseMode mode)
mode
- flagChainedOptionsBuilder shouldFailOnError(boolean value)
value
- flagChainedOptionsBuilder threads(int count)
count
- number of threadsThreads
ChainedOptionsBuilder threadGroups(int... groups)
groups
- thread distributionGroup
,
GroupThreads
ChainedOptionsBuilder syncIterations(boolean value)
value
- flagChainedOptionsBuilder warmupIterations(int value)
value
- flagWarmup
ChainedOptionsBuilder warmupBatchSize(int value)
value
- batch sizeWarmup
ChainedOptionsBuilder warmupTime(TimeValue value)
value
- timeWarmup
ChainedOptionsBuilder warmupMode(WarmupMode mode)
mode
- to useChainedOptionsBuilder includeWarmup(String regexp)
regexp
- to match benchmarks againstChainedOptionsBuilder measurementIterations(int count)
count
- number of iterationsMeasurement
ChainedOptionsBuilder measurementBatchSize(int value)
value
- batch sizeMeasurement
ChainedOptionsBuilder measurementTime(TimeValue value)
value
- timeMeasurement
ChainedOptionsBuilder mode(Mode mode)
mode
- benchmark modeBenchmarkMode
ChainedOptionsBuilder timeUnit(TimeUnit tu)
tu
- time unitOutputTimeUnit
ChainedOptionsBuilder operationsPerInvocation(int value)
value
- operations per invocation.OperationsPerInvocation
ChainedOptionsBuilder forks(int value)
value
- number of forksFork
ChainedOptionsBuilder warmupForks(int value)
value
- number of ignored forksFork
ChainedOptionsBuilder jvm(String path)
path
- path to /bin/javaChainedOptionsBuilder jvmArgs(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder jvmArgsAppend(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder jvmArgsPrepend(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder detectJvmArgs()
ChainedOptionsBuilder param(String name, String... values)
name
- parametervalues
- sequence of values to setParam
ChainedOptionsBuilder timeout(TimeValue value)
value
- timeCopyright © 2016. All rights reserved.