public final class BenchmarkRule extends Object implements org.junit.rules.TestRule
Rule
publicTestRule
runBenchmarks = new BenchmarkRule();
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Apply benchmarking to the given test description.
|
public BenchmarkRule()
public BenchmarkRule(IResultsConsumer... consumers)
Copyright © 2018 Carrot Search s.c.. All rights reserved.