org.openjdk.jmh.annotations

Annotation Type Measurement



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

    Measurement annotations allows to set the default measurement parameters for the benchmark.

    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. This annotation may be overridden with the runtime options.

    See Also:
    Warmup
    • Element Detail

      • iterations

        public abstract int iterations
        Returns:
        Number of measurement iterations
        Default:
        -1
      • time

        public abstract int time
        Returns:
        Time of each measurement iteration
        Default:
        -1
      • timeUnit

        public abstract TimeUnit timeUnit
        Returns:
        Time unit for measurement iteration duration
        Default:
        java.util.concurrent.TimeUnit.SECONDS
      • batchSize

        public abstract int batchSize
        Returns:
        Batch size: number of benchmark method calls per operation
        Default:
        -1

Copyright © 2012-2015 Oracle. All Rights Reserved.



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