home example philosophy documentation eclipse sources bugs




Each benchmark methods must be annotated with the @Bench annotation. Each method which has this annotation or one of its overridden method of super class contains this annotation is considered a benchmark method of the class.

The @Bench annotation also allows to specify certain parameters for the benchmark. If some option is not set, the option's value is taken from the overridden method of the super-class or if the method is not an overriding method, the default value for the option is chosen.



If a benchmark method gets annotated with the @SingleRun annotation, the benchmark will be invoked only once during a benchmark run instead of calculating the iteration count based on the target time. If you use this annotation you must ensure yourself that the benchmark runs a meaningful amouth of time.


The @Group annotation allows the benchmark class to be associated to a certain benchmark group. The group is identified by the string given to the annotation.