Class AbstractBenchmark

    • Constructor Detail

      • AbstractBenchmark

        protected AbstractBenchmark​(String benchmarkName,
                                    int warmupIterations,
                                    int measuredIterations)
    • Method Detail

      • getBenchmarkName

        public String getBenchmarkName()
      • getWarmupIterations

        protected int getWarmupIterations()
      • getMeasuredIterations

        protected int getMeasuredIterations()
      • setUp

        protected void setUp()
        Initialize any state necessary to run benchmark. This is run once at start up.
      • runOnce

        protected abstract Map<String,​Long> runOnce()
        Runs the benchmark and returns the result metrics
      • tearDown

        protected void tearDown()
        Clean up any state from the benchmark. This is run once after all the iterations are complete.
      • runBenchmark

        public void runBenchmark()
      • runBenchmark

        public void runBenchmark​(@Nullable
                                 BenchmarkResultHook benchmarkResultHook)