Annotation Type Warmup


  • @Target({METHOD,TYPE})
    @Retention(RUNTIME)
    @Inherited
    public @interface Warmup

    Warmup annotation allows to set the default warmup 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:
    Measurement
    • Field Detail

      • BLANK_ITERATIONS

        static final int BLANK_ITERATIONS
      • BLANK_TIME

        static final int BLANK_TIME
      • BLANK_BATCHSIZE

        static final int BLANK_BATCHSIZE
    • Element Detail

      • iterations

        int iterations
        Returns:
        Number of warmup iterations
        Default:
        -1
      • time

        int time
        Returns:
        Time for each warmup iteration
        Default:
        -1
      • timeUnit

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

        int batchSize
        Returns:
        batch size: number of benchmark method calls per operation
        Default:
        -1