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
ConstructorDescriptionBenchmarkFinder
(Class<?> clazz) Class whoseClassLoader
will be used to search for benchmarks. -
Method Summary
Modifier and TypeMethodDescriptionvoid
findBenchmarks
(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) Includes classes annotated withJmhBenchmark
as candidates for JMH benchmarks.
-
Constructor Details
-
BenchmarkFinder
Class whoseClassLoader
will be used to search for benchmarks.- Parameters:
clazz
- the class whoseClassLoader
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 withJmhBenchmark
as candidates for JMH benchmarks.- Parameters:
optionsBuilder
- the optionsBuilder used to build the benchmarks- Throws:
IOException
-