Class Benchmark

  • public class Benchmark
    extends java.lang.Object
    Helps to run benchmarks by running the same task repeatedly and averaging the running times.
    • Field Detail

      • LOGGER

        public static final org.slf4j.Logger LOGGER
        Certain tests are enabled only if logging is enabled at debug level or higher.
      • repeat

        private final int repeat
    • Method Detail

      • enabled

        public static boolean enabled()
        Returns whether performance tests are enabled.
      • printDuration

        static long printDuration​(java.lang.String desc,
                                  long t0)
      • run

        public void run()