Package org.openjdk.jmh.infra
Class BenchmarkParams
- All Implemented Interfaces:
Serializable
,Comparable<BenchmarkParams>
Benchmark parameters.
BenchmarkParams
handles the parameters used in the current run.
This class is dual-purpose:
- It acts as the interface between host JVM and forked JVM, so that the latter would not have to figure out the benchmark configuration again
- It can be injected into benchmark methods to access the runtime configuration info about the benchmark
- See Also:
-
Field Summary
FieldsFields inherited from class org.openjdk.jmh.infra.BenchmarkParamsL2
benchmark, forks, generatedTarget, jdkVersion, jmhVersion, jvm, jvmArgs, measurement, mode, opsPerInvocation, params, synchIterations, threadGroupLabels, threadGroups, threads, timeout, timeUnit, vmName, vmVersion, warmup, warmupForks
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkParams
(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
Methods inherited from class org.openjdk.jmh.infra.BenchmarkParamsL2
compareTo, equals, generatedBenchmark, getBenchmark, getForks, getJdkVersion, getJmhVersion, getJvm, getJvmArgs, getMeasurement, getMode, getOpsPerInvocation, getParam, getParamsKeys, getThreadGroupLabels, getThreadGroups, getThreads, getTimeout, getTimeUnit, getVmName, getVmVersion, getWarmup, getWarmupForks, hashCode, id, shouldSynchIterations
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
BenchmarkParams
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)
-