Package com.google.caliper.api
Annotation Type Macrobenchmark
-
@Retention(RUNTIME) @Target(METHOD) @Beta public @interface Macrobenchmark
Apply this annotation to any method without parameters to have it timed as a macrobenchmark. A macrobenchmark is roughly defined as any benchmark whose runtime is large enough that the granularity of the clock is not a factor in measurement. Thus, each repetition of the benchmark code can be timed individually.Additionally, since each rep is independently timed, setup and tear down logic can be performed in between each using the
BeforeRepandAfterRepannotations respectively.