examples
Class CharacterBenchmark
java.lang.Object
com.google.caliper.api.Benchmark
com.google.caliper.SimpleBenchmark
examples.CharacterBenchmark
- All Implemented Interfaces:
- com.google.caliper.Benchmark
public class CharacterBenchmark
- extends com.google.caliper.SimpleBenchmark
Tests various Character methods, intended for testing multiple
implementations against each other.
| 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 |
CharacterBenchmark
public CharacterBenchmark()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp in class com.google.caliper.SimpleBenchmark
- Throws:
Exception
timeIsSpace
public boolean timeIsSpace(int reps)
timeDigit
public void timeDigit(int reps)
timeGetNumericValue
public void timeGetNumericValue(int reps)
timeIsDigit
public void timeIsDigit(int reps)
timeIsIdentifierIgnorable
public void timeIsIdentifierIgnorable(int reps)
timeIsJavaIdentifierPart
public void timeIsJavaIdentifierPart(int reps)
timeIsJavaIdentifierStart
public void timeIsJavaIdentifierStart(int reps)
timeIsLetter
public void timeIsLetter(int reps)
timeIsLetterOrDigit
public void timeIsLetterOrDigit(int reps)
timeIsLowerCase
public void timeIsLowerCase(int reps)
timeIsSpaceChar
public void timeIsSpaceChar(int reps)
timeIsUpperCase
public void timeIsUpperCase(int reps)
timeIsWhitespace
public void timeIsWhitespace(int reps)
timeToLowerCase
public void timeToLowerCase(int reps)
timeToUpperCase
public void timeToUpperCase(int reps)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.