Package jenkins.benchmark.jmh
Class BenchmarkFinder
java.lang.Object
jenkins.benchmark.jmh.BenchmarkFinder
Find classes annotated with
JmhBenchmark to run their benchmark methods.- Since:
- 2.50
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkFinder(Class<?> clazz) Class whoseClassLoaderwill be used to search for benchmarks. -
Method Summary
Modifier and TypeMethodDescriptionvoidfindBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) Includes classes annotated withJmhBenchmarkas candidates for JMH benchmarks.
-
Constructor Details
-
BenchmarkFinder
Class whoseClassLoaderwill be used to search for benchmarks.- Parameters:
clazz- the class whoseClassLoaderwill be used to search for benchmarks.
-
-
Method Details
-
findBenchmarks
public void findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) throws IOException Includes classes annotated withJmhBenchmarkas candidates for JMH benchmarks.- Parameters:
optionsBuilder- the optionsBuilder used to build the benchmarks- Throws:
IOException
-