Annotation Type Fork


  • @Inherited
    @Target({METHOD,TYPE})
    @Retention(RUNTIME)
    public @interface Fork
    Fork annotation allows to set the default forking 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.

    • Field Detail

      • BLANK_FORKS

        static final int BLANK_FORKS
      • BLANK_ARGS

        static final String BLANK_ARGS
    • Element Detail

      • value

        int value
        Returns:
        number of times harness should fork, zero means "no fork"
        Default:
        -1
      • warmups

        int warmups
        Returns:
        number of times harness should fork and ignore the results
        Default:
        -1
      • jvm

        String jvm
        Returns:
        JVM executable to run with
        Default:
        "blank_blank_blank_2014"
      • jvmArgs

        String[] jvmArgs
        Returns:
        JVM arguments to replace in the command line
        Default:
        {"blank_blank_blank_2014"}
      • jvmArgsPrepend

        String[] jvmArgsPrepend
        Returns:
        JVM arguments to prepend in the command line
        Default:
        {"blank_blank_blank_2014"}
      • jvmArgsAppend

        String[] jvmArgsAppend
        Returns:
        JVM arguments to append in the command line
        Default:
        {"blank_blank_blank_2014"}