examples
Class ArraySortBenchmark

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

public class ArraySortBenchmark
extends com.google.caliper.SimpleBenchmark

Measures sorting on different distributions of integers.


Nested Class Summary
static class ArraySortBenchmark.Distribution
           
 
Constructor Summary
ArraySortBenchmark()
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
 void timeSort(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

ArraySortBenchmark

public ArraySortBenchmark()
Method Detail

setUp

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

timeSort

public void timeSort(int reps)

main

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


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