Package examples

Class Summary
ArraySortBenchmark Measures sorting on different distributions of integers.
BitSetBenchmark A simple example of a benchmark for BitSet showing some of the issues with micro-benchmarking.
CharacterBenchmark Tests various Character methods, intended for testing multiple implementations against each other.
CompressionSizeBenchmark Example "arbitrary measurement" benchmark.
ContainsBenchmark  
CopyArrayBenchmark Tests each of the three (non-manual) ways to copy an array, for all nine array types.
DemoBenchmark  
DoubleToStringBenchmark Measures the various ways the JDK converts doubles to strings.
DoubleToStringBenchmark2 Measures the various ways the JDK converts doubles to strings.
EnumSetContainsBenchmark Measures EnumSet#contains().
ExpensiveObjectsBenchmark Benchmarks creation and cloning various expensive objects.
FormatterBenchmark Compares Formatter against hand-written StringBuilder code.
IntModBenchmark Measures several candidate implementations for mod().
ListIterationBenchmark Measures iterating through list elements.
LoopingBackwardsBenchmark Testing the old canard that looping backwards is faster.
MessageDigestCreationBenchmark Times creating new MessageDigest instances.
StringBuilderBenchmark Tests the performance of various StringBuilder methods.
 

Enum Summary
ArraySortBenchmark.Distribution  
CharacterBenchmark.CharacterSet  
CharacterBenchmark.Overload  
CopyArrayBenchmark.Strategy  
DoubleToStringBenchmark.Method  
EnumSetContainsBenchmark.SetMaker  
 



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