Class BenchmarkExecutor

java.lang.Object
com.codingchili.core.benchmarking.BenchmarkExecutor

public class BenchmarkExecutor extends Object
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 Details

    • BenchmarkExecutor

      public BenchmarkExecutor(CoreContext context)
      Creates a new benchmarkexecutor that executes on the given context.
      Parameters:
      context - the context to execute on.
  • Method Details

    • start

      public io.vertx.core.Future<List<BenchmarkGroup>> start(BenchmarkGroup group)
      Parameters:
      group - a group of implementations that contains a set of benchmarks to be performed
      Returns:
      future completed when benchmarks are done.
    • start

      public io.vertx.core.Future<List<BenchmarkGroup>> start(List<BenchmarkGroup> groups)
      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

      public BenchmarkExecutor setListener(BenchmarkListener listener)
      Sets the executor event listener.
      Parameters:
      listener - the listener to execute on events.
      Returns:
      fluent