public interface JLBHTask
| Modifier and Type | Method and Description |
|---|---|
default void |
complete()
This method is used for any clean up that might be required by the benchmark.
|
void |
init(JLBH jlbh)
This method is called before the benchmark is started.
|
void |
run(long startTimeNS)
This method is called for each iteration of the benchmark.
|
default void |
runComplete()
Notify that a run has completed
|
default void |
warmedUp()
Notify that warmup phase is over
|
void init(JLBH jlbh)
jlbh - A reference to the JLBH which is needed so that jlbh.sample()
can be invoked when the benchmark is complete. It can also be used to
create more probes into the benchamrk.void run(long startTimeNS)
System.nanoTime().
It is the calculated time that the test is supposed to have started.startTimeNS - The time that should be used as the start time for the sample.default void warmedUp()
default void runComplete()
default void complete()
Copyright © 2023. All rights reserved.