com.carrotsearch.hppc.jub
Class ArrayDequeBenchmark

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

public class ArrayDequeBenchmark
extends com.carrotsearch.junitbenchmarks.AbstractBenchmark

A micro-benchmark test case for comparing ArrayDeque (used as a Stack against ObjectStack.


Field Summary
 
Fields inherited from class com.carrotsearch.junitbenchmarks.AbstractBenchmark
benchmarkRun
 
Constructor Summary
ArrayDequeBenchmark()
           
 
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
 

Constructor Detail

ArrayDequeBenchmark

public ArrayDequeBenchmark()
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.