Class BenchmarkFinder

java.lang.Object
jenkins.benchmark.jmh.BenchmarkFinder

public final class BenchmarkFinder extends Object
Find classes annotated with JmhBenchmark to run their benchmark methods.
Since:
2.50
  • Constructor Details

    • BenchmarkFinder

      public BenchmarkFinder(Class<?> clazz)
      Class whose ClassLoader will be used to search for benchmarks.
      Parameters:
      clazz - the class whose ClassLoader will be used to search for benchmarks.
  • Method Details

    • findBenchmarks

      public void findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) throws IOException
      Includes classes annotated with JmhBenchmark as candidates for JMH benchmarks.
      Parameters:
      optionsBuilder - the optionsBuilder used to build the benchmarks
      Throws:
      IOException