examples
Class DoubleToStringBenchmark

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

public class DoubleToStringBenchmark
extends com.google.caliper.SimpleBenchmark

Measures the various ways the JDK converts doubles to strings.


Nested Class Summary
static class DoubleToStringBenchmark.Method
           
 
Constructor Summary
DoubleToStringBenchmark()
           
 
Method Summary
static void main(String[] args)
           
 int timePrimitive(int reps)
           
 int timeWrapper(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

DoubleToStringBenchmark

public DoubleToStringBenchmark()
Method Detail

timePrimitive

public int timePrimitive(int reps)

timeWrapper

public int timeWrapper(int reps)

main

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


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