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