com.google.caliper
Class ConfiguredBenchmark
java.lang.Object
com.google.caliper.ConfiguredBenchmark
public abstract class ConfiguredBenchmark
- extends Object
run
public abstract Object run(int reps)
throws Exception
- Runs the benchmark through
reps
iterations.
- Returns:
- any object or null. Benchmark implementors may keep an accumulating
value to prevent the runtime from optimizing away the code under test.
Such an accumulator value can be returned here.
- Throws:
Exception
close
public abstract void close()
throws Exception
- Throws:
Exception
getBenchmark
public final Benchmark getBenchmark()
nanosToUnits
public final double nanosToUnits(double nanos)
timeUnitNames
public final Map<String,Integer> timeUnitNames()
instancesToUnits
public final double instancesToUnits(long instances)
instanceUnitNames
public final Map<String,Integer> instanceUnitNames()
bytesToUnits
public final double bytesToUnits(long bytes)
memoryUnitNames
public final Map<String,Integer> memoryUnitNames()
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.