Interface BenchmarkListener
- All Known Implementing Classes:
BenchmarkConsoleListener
public interface BenchmarkListener
Listens for progress during benchmarking.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onBenchmarkCompleted(Benchmark benchmark)
Triggers when a single benchmark is completed.default void
onGroupCompleted(BenchmarkGroup group)
Triggers when a group of implementations has completed.default void
onGroupStarted(BenchmarkGroup group)
Triggers when a group is starting benchmarking.default void
onImplementationCompleted(BenchmarkImplementation implementation)
Triggers when an implementation has completed testing.default void
onImplementationTestBegin(BenchmarkImplementation implementation)
Triggers when an implementation starts the actual testing.default void
onImplementationWarmup(BenchmarkImplementation implementation)
Triggers when an implementation is starting to warmup.default void
onImplementationWarmupComplete(BenchmarkImplementation implementation)
Triggers when an implementation has completed the warmup phase.default void
onProgressUpdate(Benchmark benchmark, int iterations)
Triggers in intervals of 5% when iterations has completed.
-
Method Details
-
onGroupStarted
Triggers when a group is starting benchmarking.- Parameters:
group
- the group that is starting up.
-
onGroupCompleted
Triggers when a group of implementations has completed.- Parameters:
group
- the group that was completed.
-
onImplementationWarmup
Triggers when an implementation is starting to warmup.- Parameters:
implementation
- the implementation to warm up.
-
onImplementationWarmupComplete
Triggers when an implementation has completed the warmup phase.- Parameters:
implementation
- the benchmark implementation that was warmed up.
-
onImplementationTestBegin
Triggers when an implementation starts the actual testing.- Parameters:
implementation
- the implementation under test.
-
onImplementationCompleted
Triggers when an implementation has completed testing.- Parameters:
implementation
- the benchmark implementation that was completed.
-
onProgressUpdate
Triggers in intervals of 5% when iterations has completed.- Parameters:
benchmark
- the benchmark that was updatediterations
- the number of iterations that have been completed
-
onBenchmarkCompleted
Triggers when a single benchmark is completed.- Parameters:
benchmark
- the benchmark that was completed.
-