Interface BenchmarkListener

All Known Implementing Classes:
BenchmarkConsoleListener

public interface BenchmarkListener
Listens for progress during benchmarking.
  • Method Details

    • onGroupStarted

      default void onGroupStarted(BenchmarkGroup group)
      Triggers when a group is starting benchmarking.
      Parameters:
      group - the group that is starting up.
    • onGroupCompleted

      default void onGroupCompleted(BenchmarkGroup group)
      Triggers when a group of implementations has completed.
      Parameters:
      group - the group that was completed.
    • onImplementationWarmup

      default void onImplementationWarmup(BenchmarkImplementation implementation)
      Triggers when an implementation is starting to warmup.
      Parameters:
      implementation - the implementation to warm up.
    • onImplementationWarmupComplete

      default void onImplementationWarmupComplete(BenchmarkImplementation implementation)
      Triggers when an implementation has completed the warmup phase.
      Parameters:
      implementation - the benchmark implementation that was warmed up.
    • onImplementationTestBegin

      default void onImplementationTestBegin(BenchmarkImplementation implementation)
      Triggers when an implementation starts the actual testing.
      Parameters:
      implementation - the implementation under test.
    • onImplementationCompleted

      default void onImplementationCompleted(BenchmarkImplementation implementation)
      Triggers when an implementation has completed testing.
      Parameters:
      implementation - the benchmark implementation that was completed.
    • onProgressUpdate

      default void onProgressUpdate(Benchmark benchmark, int iterations)
      Triggers in intervals of 5% when iterations has completed.
      Parameters:
      benchmark - the benchmark that was updated
      iterations - the number of iterations that have been completed
    • onBenchmarkCompleted

      default void onBenchmarkCompleted(Benchmark benchmark)
      Triggers when a single benchmark is completed.
      Parameters:
      benchmark - the benchmark that was completed.