Class BenchmarkConsoleListener
java.lang.Object
com.codingchili.core.benchmarking.BenchmarkConsoleListener
- All Implemented Interfaces:
BenchmarkListener
Captures events from the logging executor and logs to console.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBenchmarkCompleted(Benchmark benchmark)
Triggers when a single benchmark is completed.void
onGroupCompleted(BenchmarkGroup group)
Triggers when a group of implementations has completed.void
onGroupStarted(BenchmarkGroup group)
Triggers when a group is starting benchmarking.void
onImplementationCompleted(BenchmarkImplementation implementation)
Triggers when an implementation has completed testing.void
onImplementationTestBegin(BenchmarkImplementation implementation)
Triggers when an implementation starts the actual testing.void
onImplementationWarmup(BenchmarkImplementation implementation)
Triggers when an implementation is starting to warmup.void
onImplementationWarmupComplete(BenchmarkImplementation implementation)
Triggers when an implementation has completed the warmup phase.void
onProgressUpdate(Benchmark benchmark, int iterations)
Triggers in intervals of 5% when iterations has completed.
-
Constructor Details
-
BenchmarkConsoleListener
public BenchmarkConsoleListener()
-
-
Method Details
-
onGroupStarted
Description copied from interface:BenchmarkListener
Triggers when a group is starting benchmarking.- Specified by:
onGroupStarted
in interfaceBenchmarkListener
- Parameters:
group
- the group that is starting up.
-
onGroupCompleted
Description copied from interface:BenchmarkListener
Triggers when a group of implementations has completed.- Specified by:
onGroupCompleted
in interfaceBenchmarkListener
- Parameters:
group
- the group that was completed.
-
onImplementationWarmup
Description copied from interface:BenchmarkListener
Triggers when an implementation is starting to warmup.- Specified by:
onImplementationWarmup
in interfaceBenchmarkListener
- Parameters:
implementation
- the implementation to warm up.
-
onImplementationWarmupComplete
Description copied from interface:BenchmarkListener
Triggers when an implementation has completed the warmup phase.- Specified by:
onImplementationWarmupComplete
in interfaceBenchmarkListener
- Parameters:
implementation
- the benchmark implementation that was warmed up.
-
onImplementationTestBegin
Description copied from interface:BenchmarkListener
Triggers when an implementation starts the actual testing.- Specified by:
onImplementationTestBegin
in interfaceBenchmarkListener
- Parameters:
implementation
- the implementation under test.
-
onImplementationCompleted
Description copied from interface:BenchmarkListener
Triggers when an implementation has completed testing.- Specified by:
onImplementationCompleted
in interfaceBenchmarkListener
- Parameters:
implementation
- the benchmark implementation that was completed.
-
onProgressUpdate
Description copied from interface:BenchmarkListener
Triggers in intervals of 5% when iterations has completed.- Specified by:
onProgressUpdate
in interfaceBenchmarkListener
- Parameters:
benchmark
- the benchmark that was updatediterations
- the number of iterations that have been completed
-
onBenchmarkCompleted
Description copied from interface:BenchmarkListener
Triggers when a single benchmark is completed.- Specified by:
onBenchmarkCompleted
in interfaceBenchmarkListener
- Parameters:
benchmark
- the benchmark that was completed.
-