com.carrotsearch.junitbenchmarks
Class AbstractBenchmark

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.AbstractBenchmark

public abstract class AbstractBenchmark
extends Object

A superclass for tests that should be executed as benchmarks (several rounds, GC and time accounting). Provides a JUnit rule in benchmarkRun that runs the tests repeatedly, logging the intermediate results (memory usage, times).

Subclasses may add BenchmarkOptions at the class-level or to individual methods to override the defaults.


Field Summary
 org.junit.rules.TestRule benchmarkRun
          Enables the benchmark rule.
 
Constructor Summary
AbstractBenchmark()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

benchmarkRun

public org.junit.rules.TestRule benchmarkRun
Enables the benchmark rule.

Constructor Detail

AbstractBenchmark

public AbstractBenchmark()


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