Class MiniPerfTest

java.lang.Object
com.graphhopper.util.MiniPerfTest

public class MiniPerfTest extends Object
Author:
Peter Karich
  • Constructor Details

    • MiniPerfTest

      public MiniPerfTest()
  • Method Details

    • start

      public MiniPerfTest start(MiniPerfTest.Task m)
      Important: Make sure to use the dummy sum in your program somewhere such that it's calculation cannot be skipped by the JVM. Either use getDummySum() or getReport() after running this method.
    • setIterations

      public MiniPerfTest setIterations(int counts)
    • getMin

      public double getMin()
      Returns:
      minimum time of every call, in ms
    • getMax

      public double getMax()
      Returns:
      maximum time of every calls, in ms
    • getSum

      public double getSum()
      Returns:
      time for all calls accumulated, in ms
    • getMean

      public double getMean()
      Returns:
      mean time per call, in ms
    • getReport

      public String getReport()
    • getDummySum

      public int getDummySum()