Annotation Type Group
-
@Target(METHOD) @Retention(RUNTIME) public @interface Group
Execution group.
Multiple
Benchmarkmethods can be bound in the execution group to produce the asymmetric benchmark. Each execution group contains of one or more threads. Each thread within a particular execution group executes one ofGroup-annotatedBenchmarkmethods. The number of threads executing a particularBenchmarkdefaults to a single thread, and can be overridden byGroupThreads.Multiple copies of an execution group may participate in the run, and the number of groups depends on the number of worker threads requested. JMH will take the requested number of worker threads, round it up to execution group size, and then distribute the threads among the (multiple) groups. Among other things, this guarantees fully-populated execution groups.
For example, running
Groupwith twoBenchmarkmethods, each havingGroupThreads(4), will run 8*N threads, where N is an integer.The group tag is used as the generated benchmark name. The result of each benchmark method in isolation is recorded as secondary result named by the original method name.
-
-
Element Detail
-
value
String value
Group tag. Should be a valid Java identifier.- Returns:
- group tag
- Default:
- "group"
-
-