com.carrotsearch.junitbenchmarks
Class AbstractBenchmark
java.lang.Object
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.MethodRule |
benchmarkRun
Enables the benchmark rule. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
benchmarkRun
public org.junit.rules.MethodRule benchmarkRun
- Enables the benchmark rule.
AbstractBenchmark
public AbstractBenchmark()
Copyright © 2011 Carrot Search s.c.. All Rights Reserved.