examples
Class ListIterationBenchmark

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

public class ListIterationBenchmark
extends com.google.caliper.SimpleBenchmark

Measures iterating through list elements.


Constructor Summary
ListIterationBenchmark()
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
 void timeArrayIteration(int reps)
           
 void timeListIteration(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

ListIterationBenchmark

public ListIterationBenchmark()
Method Detail

setUp

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

timeListIteration

public void timeListIteration(int reps)

timeArrayIteration

public void timeArrayIteration(int reps)

main

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


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