public class BenchmarkParamsextends 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 | jvm |
protected Collection<String> | jvmArgs |
protected IterationParams | measurement |
protected Mode | mode |
protected int | opsPerInvocation |
protected WorkloadParams | params |
protected boolean | synchIterations |
protected int[] | threadGroups |
protected int | threads |
protected TimeValue | timeout |
protected TimeUnit | timeUnit |
protected IterationParams | warmup |
protected int | warmupForks |
Constructor and Description |
---|
BenchmarkParams(BenchmarkParams other) |
BenchmarkParams(String benchmark, String generatedTarget, boolean synchIterations, int threads, int[] threadGroups, 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 and 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() |
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 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(BenchmarkParams other)
public BenchmarkParams(String benchmark, String generatedTarget, boolean synchIterations, int threads, int[] threadGroups, 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 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-2015 Oracle. All Rights Reserved.