examples
Class CharacterBenchmark

java.lang.Object
  extended by com.google.caliper.api.Benchmark
      extended by com.google.caliper.SimpleBenchmark
          extended by 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.


Nested Class Summary
static class CharacterBenchmark.CharacterSet
           
static class CharacterBenchmark.Overload
           
 
Constructor Summary
CharacterBenchmark()
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
 void timeDigit(int reps)
           
 void timeGetNumericValue(int reps)
           
 void timeIsDigit(int reps)
           
 void timeIsIdentifierIgnorable(int reps)
           
 void timeIsJavaIdentifierPart(int reps)
           
 void timeIsJavaIdentifierStart(int reps)
           
 void timeIsLetter(int reps)
           
 void timeIsLetterOrDigit(int reps)
           
 void timeIsLowerCase(int reps)
           
 boolean timeIsSpace(int reps)
           
 void timeIsSpaceChar(int reps)
           
 void timeIsUpperCase(int reps)
           
 void timeIsWhitespace(int reps)
           
 void timeToLowerCase(int reps)
           
 void timeToUpperCase(int reps)
           
 
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
 

Constructor Detail

CharacterBenchmark

public CharacterBenchmark()
Method Detail

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.