Class BaseBenchState


  • public class BaseBenchState
    extends Object
    The type Base bench state.
    • Field Detail

      • QUIET_LOG

        public static final boolean QUIET_LOG
        The constant QUIET_LOG.
      • workDir

        public String workDir
        The Work dir.
    • Constructor Detail

      • BaseBenchState

        public BaseBenchState()
    • Method Detail

      • getRandomSeed

        public static Long getRandomSeed()
        Gets random seed.
        Returns:
        the random seed
      • log

        public static void log​(String value)
        Log.
        Parameters:
        value - the value
      • doSetup

        public void doSetup​(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
        Do setup.
        Parameters:
        benchmarkParams - the benchmark params
      • doTearDown

        public static void doTearDown​(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
                               throws Exception
        Do tear down.
        Parameters:
        benchmarkParams - the benchmark params
        Throws:
        Exception - the exception
      • dumpHeap

        public static void dumpHeap​(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
                             throws IOException
        Dump heap.
        Parameters:
        benchmarkParams - the benchmark params
        Throws:
        IOException - the io exception