examples
Class StringBuilderBenchmark
java.lang.Object
com.google.caliper.api.Benchmark
com.google.caliper.SimpleBenchmark
examples.StringBuilderBenchmark
- All Implemented Interfaces:
- com.google.caliper.Benchmark
public class StringBuilderBenchmark
- extends com.google.caliper.SimpleBenchmark
Tests the performance of various StringBuilder methods.
| 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 |
StringBuilderBenchmark
public StringBuilderBenchmark()
timeAppendBoolean
public void timeAppendBoolean(int reps)
timeAppendChar
public void timeAppendChar(int reps)
timeAppendCharArray
public void timeAppendCharArray(int reps)
timeAppendCharSequence
public void timeAppendCharSequence(int reps)
timeAppendDouble
public void timeAppendDouble(int reps)
timeAppendFloat
public void timeAppendFloat(int reps)
timeAppendInt
public void timeAppendInt(int reps)
timeAppendLong
public void timeAppendLong(int reps)
timeAppendObject
public void timeAppendObject(int reps)
timeAppendString
public void timeAppendString(int reps)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.