|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.carrotsearch.junitbenchmarks.BenchmarkRule
public final class BenchmarkRule
A benchmark rule (causes tests to be repeated and measured). Benchmark rule should be placed in the test class as a field, with annotation. Example:
Rule
publicTestRule
runBenchmarks = new BenchmarkRule();
Constructor Summary | |
---|---|
BenchmarkRule()
Creates a benchmark rule with the default sink for benchmark results (the default sink is taken from global properties). |
|
BenchmarkRule(IResultsConsumer... consumers)
Creates a benchmark rule with a given sink for benchmark results. |
Method Summary | |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Apply benchmarking to the given test description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BenchmarkRule()
public BenchmarkRule(IResultsConsumer... consumers)
Method Detail |
---|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |