com.carrotsearch.hppc.jub
Class IterationSpeedBenchmark

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.AbstractBenchmark
      extended by com.carrotsearch.hppc.jub.IterationSpeedBenchmark

public class IterationSpeedBenchmark
extends com.carrotsearch.junitbenchmarks.AbstractBenchmark

Various iteration approaches on an integer list.


Field Summary
static int CELLS
           
 int guard
           
 
Fields inherited from class com.carrotsearch.junitbenchmarks.AbstractBenchmark
benchmarkRun
 
Constructor Summary
IterationSpeedBenchmark()
           
 
Method Summary
static void after()
           
static void before()
           
 void testDirectBufferLoop()
           
 void testDirectBufferWithNewFor()
           
 void testIterableCursor()
           
 void testSimpleGetLoop()
           
 void testWithProcedureClosure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELLS

public static final int CELLS
See Also:
Constant Field Values

guard

public volatile int guard
Constructor Detail

IterationSpeedBenchmark

public IterationSpeedBenchmark()
Method Detail

before

public static void before()

after

public static void after()

testSimpleGetLoop

public void testSimpleGetLoop()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testDirectBufferLoop

public void testDirectBufferLoop()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testIterableCursor

public void testIterableCursor()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testWithProcedureClosure

public void testWithProcedureClosure()

testDirectBufferWithNewFor

public void testDirectBufferWithNewFor()
                                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011 Carrot Search s.c.. All Rights Reserved.