com.carrotsearch.hppc.jub
Class ObjectStackBenchmark

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

public class ObjectStackBenchmark
extends com.carrotsearch.junitbenchmarks.AbstractBenchmark

A micro-benchmark test case for ObjectStack.


Field Summary
static int COUNT
           
 
Fields inherited from class com.carrotsearch.junitbenchmarks.AbstractBenchmark
benchmarkRun
 
Constructor Summary
ObjectStackBenchmark()
           
 
Method Summary
 void before()
           
 void testPushPops()
          Test sequential push and pops from the stack (first a lot of pushes, then a lot of pops).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT

public static final int COUNT
See Also:
Constant Field Values
Constructor Detail

ObjectStackBenchmark

public ObjectStackBenchmark()
Method Detail

before

public void before()

testPushPops

public void testPushPops()
                  throws java.lang.Exception
Test sequential push and pops from the stack (first a lot of pushes, then a lot of pops).

Throws:
java.lang.Exception


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