examples
Class DoubleToStringBenchmark2

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

public class DoubleToStringBenchmark2
extends com.google.caliper.SimpleBenchmark

Measures the various ways the JDK converts doubles to strings.


Constructor Summary
DoubleToStringBenchmark2()
           
 
Method Summary
static void main(String[] args)
           
 int timeQuoteTrick(int reps)
           
 int timeStringFormat(int reps)
           
 int timeStringValueOf(int reps)
           
 int timeToString(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

DoubleToStringBenchmark2

public DoubleToStringBenchmark2()
Method Detail

timeToString

public int timeToString(int reps)

timeStringValueOf

public int timeStringValueOf(int reps)

timeStringFormat

public int timeStringFormat(int reps)

timeQuoteTrick

public int timeQuoteTrick(int reps)

main

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


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