com.google.caliper
Class ConfiguredBenchmark

java.lang.Object
  extended by com.google.caliper.ConfiguredBenchmark

public abstract class ConfiguredBenchmark
extends Object


Method Summary
 double bytesToUnits(long bytes)
           
abstract  void close()
           
 Benchmark getBenchmark()
           
 double instancesToUnits(long instances)
           
 Map<String,Integer> instanceUnitNames()
           
 Map<String,Integer> memoryUnitNames()
           
 double nanosToUnits(double nanos)
           
abstract  Object run(int reps)
          Runs the benchmark through reps iterations.
 Map<String,Integer> timeUnitNames()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.