Class BenchmarkExecutor
java.lang.Object
com.codingchili.core.benchmarking.BenchmarkExecutor
Micro-benchmarks runner.
Creates and runs a group of benchmarks. Benchmarks are run for one implementation at a time and are executed in the same order as they are added to the group. The order for each benchmark test is also preserved. No more than one benchmark is executed concurrently.
-
Constructor Summary
ConstructorDescriptionBenchmarkExecutor(CoreContext context)
Creates a new benchmarkexecutor that executes on the given context. -
Method Summary
Modifier and TypeMethodDescriptionsetListener(BenchmarkListener listener)
Sets the executor event listener.io.vertx.core.Future<List<BenchmarkGroup>>
start(BenchmarkGroup group)
io.vertx.core.Future<List<BenchmarkGroup>>
start(List<BenchmarkGroup> groups)
-
Constructor Details
-
BenchmarkExecutor
Creates a new benchmarkexecutor that executes on the given context.- Parameters:
context
- the context to execute on.
-
-
Method Details
-
start
- Parameters:
group
- a group of implementations that contains a set of benchmarks to be performed- Returns:
- future completed when benchmarks are done.
-
start
- Parameters:
groups
- a list of groups of implementations that contains a set of benchmarks to be performed- Returns:
- future completed when benchmarks are done.
-
setListener
Sets the executor event listener.- Parameters:
listener
- the listener to execute on events.- Returns:
- fluent
-