Package jenkins.benchmark.jmh
Class BenchmarkFinder
- java.lang.Object
-
- jenkins.benchmark.jmh.BenchmarkFinder
-
public final class BenchmarkFinder extends Object
Find classes annotated withJmhBenchmark
to run their benchmark methods.- Since:
- 2.50
-
-
Constructor Summary
Constructors Constructor Description BenchmarkFinder(Class<?> clazz)
Class whoseClassLoader
will be used to search for benchmarks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder)
Includes classes annotated withJmhBenchmark
as candidates for JMH benchmarks.
-
-
-
Constructor Detail
-
BenchmarkFinder
public BenchmarkFinder(Class<?> clazz)
Class whoseClassLoader
will be used to search for benchmarks.- Parameters:
clazz
- the class whoseClassLoader
will be used to search for benchmarks.
-
-
Method Detail
-
findBenchmarks
public void findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) throws IOException
Includes classes annotated withJmhBenchmark
as candidates for JMH benchmarks.- Parameters:
optionsBuilder
- the optionsBuilder used to build the benchmarks- Throws:
IOException
-
-