Package org.openjdk.jmh.annotations
Annotation Type TearDown
-
@Target(METHOD) @Retention(RUNTIME) public @interface TearDown
TearDown marks the fixture method to be run after the benchmark.
Since fixture methods manage the
Statelifecycles,TearDowncan only be declared inStateclasses. TheTearDownmethod will be executed by a thread which has the access toState, and it is not defined which thread exactly. Note that meansSetupmay be executed by a different thread, ifStateis shared between the threads.Uses may optionally provide the
Levelat which the fixture method should run.- See Also:
State