public abstract static class MicroBenchmark.Benchmark extends Object
| Constructor and Description |
|---|
MicroBenchmark.Benchmark() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun()
The benchmark runner calls the method after every call to the
run
method for tearing down the scope of the previous call to run. |
void |
beforeRun()
The benchmark runner calls the method before every call to the
run
method for setting the scope of the subsequent call to run. |
void |
result(org.apache.commons.math3.stat.descriptive.DescriptiveStatistics statistics)
The benchmark runner calls this method exactly once and only if the benchmark
did not result in an error.
|
abstract void |
run()
The benchmark runner calls this method a number of times to measure its
runtime performance.
|
void |
setup()
The benchmark runner calls this method first and exactly once by for setting up
the test fixture.
|
void |
tearDown()
The benchmark runner calls this method last and exactly once for tearing down
the test fixture.
|
public void setup()
throws Exception
Exceptionpublic void beforeRun()
throws Exception
run
method for setting the scope of the subsequent call to run.Exceptionpublic abstract void run()
throws Exception
Exceptionpublic void afterRun()
throws Exception
run
method for tearing down the scope of the previous call to run.Exceptionpublic void result(org.apache.commons.math3.stat.descriptive.DescriptiveStatistics statistics)
Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.