Package com.graphhopper.util
Class MiniPerfTest
java.lang.Object
com.graphhopper.util.MiniPerfTest
- Author:
- Peter Karich
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
double
getMax()
double
getMean()
double
getMin()
double
getSum()
setIterations
(int counts) Important: Make sure to use the dummy sum in your program somewhere such that it's calculation cannot be skipped by the JVM.
-
Constructor Details
-
MiniPerfTest
public MiniPerfTest()
-
-
Method Details
-
start
Important: Make sure to use the dummy sum in your program somewhere such that it's calculation cannot be skipped by the JVM. Either usegetDummySum()
orgetReport()
after running this method. -
setIterations
-
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
-
getDummySum
public int getDummySum()
-