org.openjdk.jmh.annotations
Annotation Type OperationsPerInvocation


@Inherited@Target(value={METHOD,TYPE})@Retention(value=RUNTIME)public @interface OperationsPerInvocation

OperationsPerInvocation annotations allows to communicate the benchmark does more than one operation, and let JMH to adjust the scores appropriately.

For example, a benchmark which uses the internal loop to have multiple operations, may want to measure the performance of a single operation:

 @Benchmark @OperationsPerInvocation(10) public void test() {      for (int i = 0; i < 10; i++) {          // do something      } } 

This annotation may be put at Benchmark method to have effect on that method only, or at the enclosing class instance to have the effect over all Benchmark methods in the class.


Optional Element Summary
 intvalue
           
 

value

public abstract int value
Returns:
Number of operations per single Benchmark call.
Default:
1


Copyright © 2012-2014
Oracle. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14