Package org.openjdk.jmh.infra
Class BenchmarkParamsL2
java.lang.Object
org.openjdk.jmh.infra.BenchmarkParamsL0
org.openjdk.jmh.infra.BenchmarkParamsL1
org.openjdk.jmh.infra.BenchmarkParamsL2
- All Implemented Interfaces:
Serializable
,Comparable<BenchmarkParams>
- Direct Known Subclasses:
BenchmarkParamsL3
abstract class BenchmarkParamsL2
extends BenchmarkParamsL1
implements Serializable, Comparable<BenchmarkParams>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final int
protected final String
protected final String
protected final String
protected final String
protected final Collection
<String> protected final IterationParams
protected final Mode
protected final int
protected final WorkloadParams
private static final long
protected final boolean
protected final Collection
<String> protected final int[]
protected final int
protected final TimeValue
protected final TimeUnit
protected final String
protected final String
protected final IterationParams
protected final int
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkParamsL2
(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) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
appendSanitized
(StringBuilder builder, String s) int
boolean
int
getForks()
getJvm()
getMode()
int
int[]
int
int
int
hashCode()
id()
boolean
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
benchmark
-
generatedTarget
-
synchIterations
protected final boolean synchIterations -
threads
protected final int threads -
threadGroups
protected final int[] threadGroups -
threadGroupLabels
-
forks
protected final int forks -
warmupForks
protected final int warmupForks -
warmup
-
measurement
-
mode
-
params
-
timeUnit
-
opsPerInvocation
protected final int opsPerInvocation -
jvm
-
jvmArgs
-
jdkVersion
-
jmhVersion
-
vmName
-
vmVersion
-
timeout
-
-
Constructor Details
-
BenchmarkParamsL2
public BenchmarkParamsL2(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)
-
-
Method Details
-
getTimeout
- Returns:
- how long to wait for iteration to complete
-
shouldSynchIterations
public boolean shouldSynchIterations()- Returns:
- do we synchronize iterations?
-
getWarmup
- Returns:
- iteration parameters for warmup phase
-
getMeasurement
- Returns:
- iteration parameters for measurement phase
-
getThreads
public int getThreads()- Returns:
- total measurement thread count
-
getThreadGroups
public int[] getThreadGroups()- Returns:
- thread distribution within the group
- See Also:
-
getThreadGroupLabels
- Returns:
- subgroup thread labels
- See Also:
-
getForks
public int getForks()- Returns:
- number of forked VM runs, which we measure
-
getWarmupForks
public int getWarmupForks()- Returns:
- number of forked VM runs, which we discard from the result
-
getMode
- Returns:
- benchmark mode
-
getBenchmark
- Returns:
- benchmark name
-
getTimeUnit
- Returns:
- timeUnit used in results
-
getOpsPerInvocation
public int getOpsPerInvocation()- Returns:
- operations per invocation used
-
getParamsKeys
- Returns:
- all workload parameters
-
getParam
- Parameters:
key
- parameter key; usually the field name- Returns:
- parameter value for given key
-
generatedBenchmark
- Returns:
- generated benchmark name
-
getJvm
- Returns:
- JVM executable path
-
getJmhVersion
- Returns:
- JMH version identical to
Version.getPlainVersion()
, but output format should get there input via bean for testing purposes.
-
getJvmArgs
- Returns:
- JVM options
-
getJdkVersion
- Returns:
- version information as returned by the effective target JVM,
via system property
java.version
andjava.vm.version
-
getVmVersion
- Returns:
- version information as returned by the effective target JVM,
via system property
java.vm.version
-
getVmName
- Returns:
- name information as returned by the effective target JVM,
via system property
java.vm.name
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<BenchmarkParams>
-
id
-
appendSanitized
-