examples
Class ExpensiveObjectsBenchmark

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

public class ExpensiveObjectsBenchmark
extends com.google.caliper.SimpleBenchmark

Benchmarks creation and cloning various expensive objects.


Constructor Summary
ExpensiveObjectsBenchmark()
           
 
Method Summary
static void main(String[] args)
           
 void timeClonedDecimalFormatSymbols(int reps)
           
 void timeClonedNumberFormat(int reps)
           
 void timeClonedSimpleDateFormat(int reps)
           
 void timeNewDecimalFormatSymbols(int reps)
           
 void timeNewNumberFormat(int reps)
           
 void timeNewSimpleDateFormat(int reps)
           
 
Methods inherited from class com.google.caliper.SimpleBenchmark
bytesToUnits, createBenchmark, getInstanceUnitNames, getMemoryUnitNames, getTimeUnitNames, instancesToUnits, nanosToUnits, normalizeScenario, parameterNames, parameterValues, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpensiveObjectsBenchmark

public ExpensiveObjectsBenchmark()
Method Detail

timeNewDecimalFormatSymbols

public void timeNewDecimalFormatSymbols(int reps)

timeClonedDecimalFormatSymbols

public void timeClonedDecimalFormatSymbols(int reps)

timeNewNumberFormat

public void timeNewNumberFormat(int reps)

timeClonedNumberFormat

public void timeClonedNumberFormat(int reps)

timeNewSimpleDateFormat

public void timeNewSimpleDateFormat(int reps)

timeClonedSimpleDateFormat

public void timeClonedSimpleDateFormat(int reps)

main

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


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