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 Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String BLANK_ARGS  
      static int BLANK_FORKS  
    • Field Detail

      • BLANK_FORKS

        static final int BLANK_FORKS
      • BLANK_ARGS

        static final java.lang.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

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

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

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

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