Annotation Type JmhBenchmark


@Target(TYPE) @Retention(RUNTIME) @Indexed public @interface JmhBenchmark
Annotate your benchmark classes with this annotation to allow them to be discovered by BenchmarkFinder
Since:
2.50
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Methods which annotated by Benchmark in classes annotated by JmhBenchmark are to be run as benchmarks if they match this regex pattern.
  • Element Details

    • value

      String value
      Methods which annotated by Benchmark in classes annotated by JmhBenchmark are to be run as benchmarks if they match this regex pattern.

      Matches all functions by default, i.e. default pattern is .*.

      Returns:
      the regular expression used to match function names.
      Default:
      ".*"