examples
Class ContainsBenchmark

java.lang.Object
  extended by com.google.caliper.api.Benchmark
      extended by com.google.caliper.SimpleBenchmark
          extended by examples.ContainsBenchmark
All Implemented Interfaces:
com.google.caliper.Benchmark

public class ContainsBenchmark
extends com.google.caliper.SimpleBenchmark


Constructor Summary
ContainsBenchmark()
           
 
Method Summary
 Map<String,Integer> getTimeUnitNames()
           
static void main(String[] args)
           
 double nanosToUnits(double nanos)
           
protected  void setUp()
           
 void timeContains(int reps)
           
 
Methods inherited from class com.google.caliper.SimpleBenchmark
bytesToUnits, createBenchmark, getInstanceUnitNames, getMemoryUnitNames, instancesToUnits, normalizeScenario, parameterNames, parameterValues, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainsBenchmark

public ContainsBenchmark()
Method Detail

setUp

protected void setUp()
Overrides:
setUp in class com.google.caliper.SimpleBenchmark

getTimeUnitNames

public Map<String,Integer> getTimeUnitNames()
Specified by:
getTimeUnitNames in interface com.google.caliper.Benchmark
Overrides:
getTimeUnitNames in class com.google.caliper.SimpleBenchmark

nanosToUnits

public double nanosToUnits(double nanos)
Specified by:
nanosToUnits in interface com.google.caliper.Benchmark
Overrides:
nanosToUnits in class com.google.caliper.SimpleBenchmark

timeContains

public void timeContains(int reps)

main

public static void main(String[] args)


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