Class Runner


  • public class Runner
    extends BaseRunner
    Runner executes JMH benchmarks.

    This is the entry point for JMH Java API.

    Runner is not usually reusable. After you execute any method on the Runner, you should digest the results, give up on current Runner, and instantiate another one. This class may be turned into static class in future releases.

    • Field Detail

      • TAIL_LINES_ON_ERROR

        private static final int TAIL_LINES_ON_ERROR
      • JMH_LOCK_FILE

        private static final java.lang.String JMH_LOCK_FILE
      • JMH_LOCK_IGNORE

        private static final java.lang.Boolean JMH_LOCK_IGNORE
      • cpuCount

        private int cpuCount
    • Constructor Detail

      • Runner

        public Runner​(Options options,
                      OutputFormat format)
        Create runner with the custom OutputFormat.
        Parameters:
        options - options to use
        format - OutputFormat to use
      • Runner

        public Runner​(Options options)
        Create Runner with the given options. This method sets up the OutputFormat as mandated by options.
        Parameters:
        options - options to use.