Serializable
, Comparable<BenchmarkParams>
public class BenchmarkParams extends Object
BenchmarkParams
handles the parameters used in the current run.
This class is dual-purpose:
Modifier and Type | Field | Description |
---|---|---|
protected String |
benchmark |
|
protected int |
forks |
|
protected String |
generatedTarget |
|
protected String |
jvm |
|
protected Collection<String> |
jvmArgs |
|
protected IterationParams |
measurement |
|
protected Mode |
mode |
|
protected int |
opsPerInvocation |
|
protected WorkloadParams |
params |
|
protected boolean |
synchIterations |
|
protected Collection<String> |
threadGroupLabels |
|
protected int[] |
threadGroups |
|
protected int |
threads |
|
protected TimeValue |
timeout |
|
protected TimeUnit |
timeUnit |
|
protected IterationParams |
warmup |
|
protected int |
warmupForks |
Constructor | Description |
---|---|
BenchmarkParams(String benchmark,
String generatedTarget,
boolean synchIterations,
int threads,
int[] threadGroups,
Collection<String> threadGroupLabels,
int forks,
int warmupForks,
IterationParams warmup,
IterationParams measurement,
Mode mode,
WorkloadParams params,
TimeUnit timeUnit,
int opsPerInvocation,
String jvm,
Collection<String> jvmArgs,
TimeValue timeout) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(BenchmarkParams o) |
|
boolean |
equals(Object o) |
|
String |
generatedBenchmark() |
|
String |
getBenchmark() |
|
int |
getForks() |
|
String |
getJvm() |
|
Collection<String> |
getJvmArgs() |
|
IterationParams |
getMeasurement() |
|
Mode |
getMode() |
|
int |
getOpsPerInvocation() |
|
String |
getParam(String key) |
|
Collection<String> |
getParamsKeys() |
|
Collection<String> |
getThreadGroupLabels() |
|
int[] |
getThreadGroups() |
|
int |
getThreads() |
|
TimeValue |
getTimeout() |
|
TimeUnit |
getTimeUnit() |
|
IterationParams |
getWarmup() |
|
int |
getWarmupForks() |
|
int |
hashCode() |
|
String |
id() |
|
boolean |
shouldSynchIterations() |
protected final String benchmark
protected final String generatedTarget
protected final boolean synchIterations
protected final int threads
protected final int[] threadGroups
protected final Collection<String> threadGroupLabels
protected final int forks
protected final int warmupForks
protected final IterationParams warmup
protected final IterationParams measurement
protected final Mode mode
protected final WorkloadParams params
protected final TimeUnit timeUnit
protected final int opsPerInvocation
protected final String jvm
protected final Collection<String> jvmArgs
protected final TimeValue timeout
public BenchmarkParams(String benchmark, String generatedTarget, boolean synchIterations, int threads, int[] threadGroups, Collection<String> threadGroupLabels, int forks, int warmupForks, IterationParams warmup, IterationParams measurement, Mode mode, WorkloadParams params, TimeUnit timeUnit, int opsPerInvocation, String jvm, Collection<String> jvmArgs, TimeValue timeout)
public TimeValue getTimeout()
public boolean shouldSynchIterations()
public IterationParams getWarmup()
public IterationParams getMeasurement()
public int getThreads()
public int[] getThreadGroups()
ChainedOptionsBuilder.threadGroups(int...)
public Collection<String> getThreadGroupLabels()
getThreadGroups()
public int getForks()
public int getWarmupForks()
public Mode getMode()
public String getBenchmark()
public TimeUnit getTimeUnit()
public int getOpsPerInvocation()
public Collection<String> getParamsKeys()
public String getParam(String key)
key
- parameter key; usually the field namepublic String generatedBenchmark()
public String getJvm()
public Collection<String> getJvmArgs()
public int compareTo(BenchmarkParams o)
compareTo
in interface Comparable<BenchmarkParams>
public String id()
Copyright © 2012-2016 Oracle. All Rights Reserved.