|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.caliper.api.Benchmark
com.google.caliper.SimpleBenchmark
examples.LoopingBackwardsBenchmark
public class LoopingBackwardsBenchmark
Testing the old canard that looping backwards is faster.
| Constructor Summary | |
|---|---|
LoopingBackwardsBenchmark()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
int |
timeBackwards(int reps)
|
int |
timeForwards(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 |
|---|
public LoopingBackwardsBenchmark()
| Method Detail |
|---|
public int timeForwards(int reps)
public int timeBackwards(int reps)
public static void main(String[] args)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||