public class BenchmarkParams extends Object
BenchmarkParams
handles the parameters used in the current run.
This class is dual-purpose:
Modifier and Type | Field and Description |
---|---|
protected String |
benchmark |
protected int |
forks |
protected String |
generatedTarget |
protected String |
jdkVersion |
protected String |
jmhVersion |
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 String |
vmName |
protected String |
vmVersion |
protected IterationParams |
warmup |
protected int |
warmupForks |
Constructor and 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,
String jdkVersion,
String vmName,
String vmVersion,
String jmhVersion,
TimeValue timeout) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BenchmarkParams o) |
boolean |
equals(Object o) |
String |
generatedBenchmark() |
String |
getBenchmark() |
int |
getForks() |
String |
getJdkVersion() |
String |
getJmhVersion() |
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() |
String |
getVmName() |
String |
getVmVersion() |
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 String jdkVersion
protected final String jmhVersion
protected final String vmName
protected final String vmVersion
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, String jdkVersion, String vmName, String vmVersion, String jmhVersion, 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 String getJmhVersion()
Version.getPlainVersion()
, but output format should
get there input via bean for testing purposes.public Collection<String> getJvmArgs()
public String getJdkVersion()
java.version
and java.vm.version
public String getVmVersion()
java.vm.version
public String getVmName()
java.vm.name
public int compareTo(BenchmarkParams o)
compareTo
in interface Comparable<BenchmarkParams>
public String id()
Copyright © 2024. All rights reserved.