Class CoreBenchmarkSuite
java.lang.Object
com.codingchili.core.benchmarking.CoreBenchmarkSuite
Contains system benchmarks..
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute(io.vertx.core.Promise<CommandResult> promise, CommandExecutor executor)
Creates a clustered vertx instance on which all registered benchmarks will run.io.vertx.core.Future<List<BenchmarkGroup>>
maps(CoreContext context, BenchmarkListener listener)
Runs all core map benchmarks.setIterations(int iterations)
Set the number of iterations to perform.
-
Constructor Details
-
CoreBenchmarkSuite
public CoreBenchmarkSuite()
-
-
Method Details
-
execute
Creates a clustered vertx instance on which all registered benchmarks will run.- Parameters:
promise
- callback on completionexecutor
- executor to invoke this as a command.
-
maps
public io.vertx.core.Future<List<BenchmarkGroup>> maps(CoreContext context, BenchmarkListener listener)Runs all core map benchmarks.- Parameters:
context
- the core context to run benchmark onlistener
- benchmark listener to use- Returns:
- a future that is completed with the results of the benchmark.
-
setIterations
Set the number of iterations to perform.- Parameters:
iterations
- iterations to perform- Returns:
- fluent
-