examples
Class EnumSetContainsBenchmark

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

public class EnumSetContainsBenchmark
extends com.google.caliper.SimpleBenchmark

Measures EnumSet#contains().


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

Constructor Detail

EnumSetContainsBenchmark

public EnumSetContainsBenchmark()
Method Detail

setUp

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

timeContains

public void timeContains(int reps)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


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