public abstract static class MicroBenchmark.Benchmark
extends java.lang.Object
| Constructor and Description |
|---|
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(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 java.lang.Exception
java.lang.Exceptionpublic void beforeRun()
throws java.lang.Exception
run
method for setting the scope of the subsequent call to run.java.lang.Exceptionpublic abstract void run()
throws java.lang.Exception
java.lang.Exceptionpublic void afterRun()
throws java.lang.Exception
run
method for tearing down the scope of the previous call to run.java.lang.Exceptionpublic void result(DescriptiveStatistics statistics)
public void tearDown()
throws java.lang.Exception
java.lang.Exception"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"