com.google.caliper.runner
Class MicrobenchmarkInstrument
java.lang.Object
com.google.caliper.runner.Instrument
com.google.caliper.runner.MicrobenchmarkInstrument
public final class MicrobenchmarkInstrument
- extends Instrument
MicrobenchmarkInstrument
public MicrobenchmarkInstrument()
estimateRuntimePerTrial
public ShortDuration estimateRuntimePerTrial()
- Overrides:
estimateRuntimePerTrial
in class Instrument
isBenchmarkMethod
public boolean isBenchmarkMethod(Method method)
- Specified by:
isBenchmarkMethod
in class Instrument
createBenchmarkMethod
public BenchmarkMethod createBenchmarkMethod(BenchmarkClass benchmarkClass,
Method method)
throws InvalidBenchmarkException
- Specified by:
createBenchmarkMethod
in class Instrument
- Throws:
InvalidBenchmarkException
dryRun
public void dryRun(Benchmark benchmark,
BenchmarkMethod benchmarkMethod)
throws UserCodeException
- Specified by:
dryRun
in class Instrument
- Throws:
UserCodeException
workerOptions
public Map<String,String> workerOptions()
- Overrides:
workerOptions
in class Instrument
workerClass
public Class<? extends Worker> workerClass()
- Specified by:
workerClass
in class Instrument
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.