com.google.caliper
Interface Benchmark

All Known Implementing Classes:
SimpleBenchmark

public interface Benchmark

A collection of benchmarks that share a set of configuration parameters.


Method Summary
 double bytesToUnits(long bytes)
           
 ConfiguredBenchmark createBenchmark(Map<String,String> parameterValues)
           
 Map<String,Integer> getInstanceUnitNames()
           
 Map<String,Integer> getMemoryUnitNames()
           
 Map<String,Integer> getTimeUnitNames()
          A mapping of units to their values.
 double instancesToUnits(long instances)
           
 double nanosToUnits(double nanos)
          Converts nanoseconds to the smallest unit defined in getTimeUnitNames().
 Set<String> parameterNames()
           
 Set<String> parameterValues(String parameterName)
           
 

Method Detail

parameterNames

Set<String> parameterNames()

parameterValues

Set<String> parameterValues(String parameterName)

createBenchmark

ConfiguredBenchmark createBenchmark(Map<String,String> parameterValues)

getTimeUnitNames

Map<String,Integer> getTimeUnitNames()
A mapping of units to their values. Their values must be integers, but all values are relative, so if one unit is 1.5 times the size of another, then these units can be expressed as {"unit1"=10,"unit2"=15}. The smallest unit given by the function will be used to display immediate results when running at the command line. e.g. 0% Scenario{...} 16.08; σ=1.72 @ 3 trials


getInstanceUnitNames

Map<String,Integer> getInstanceUnitNames()

getMemoryUnitNames

Map<String,Integer> getMemoryUnitNames()

nanosToUnits

double nanosToUnits(double nanos)
Converts nanoseconds to the smallest unit defined in getTimeUnitNames().


instancesToUnits

double instancesToUnits(long instances)

bytesToUnits

double bytesToUnits(long bytes)


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.