Package com.google.caliper.bridge
Class ExperimentSpec
- java.lang.Object
-
- com.google.caliper.bridge.ExperimentSpec
-
- All Implemented Interfaces:
Serializable
public final class ExperimentSpec extends Object implements Serializable
Specification of an experiment to be run as a dry-run or a trial on a worker.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExperimentSpec(int id, InstrumentType instrumentType, com.google.common.collect.ImmutableMap<String,String> workerInstrumentOptions, BenchmarkSpec benchmarkSpec, Iterable<String> methodParameterClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BenchmarkSpecbenchmarkSpec()Returns the spec of the benchmark to run.intid()Returns the ID of this experiment.InstrumentTypeinstrumentType()Returns the type of instrument to use for the experiment.com.google.common.collect.ImmutableList<String>methodParameterClasses()Returns the parameter types for the benchmark method to run so that it can be uniquely identified.com.google.common.collect.ImmutableMap<String,String>workerInstrumentOptions()Returns the worker options to use.
-
-
-
Constructor Detail
-
ExperimentSpec
public ExperimentSpec(int id, InstrumentType instrumentType, com.google.common.collect.ImmutableMap<String,String> workerInstrumentOptions, BenchmarkSpec benchmarkSpec, Iterable<String> methodParameterClasses)
-
-
Method Detail
-
id
public int id()
Returns the ID of this experiment.
-
instrumentType
public InstrumentType instrumentType()
Returns the type of instrument to use for the experiment.
-
workerInstrumentOptions
public com.google.common.collect.ImmutableMap<String,String> workerInstrumentOptions()
Returns the worker options to use.
-
benchmarkSpec
public BenchmarkSpec benchmarkSpec()
Returns the spec of the benchmark to run.
-
methodParameterClasses
public com.google.common.collect.ImmutableList<String> methodParameterClasses()
Returns the parameter types for the benchmark method to run so that it can be uniquely identified.
-
-