Package es.urjc.etsii.grafo.util
Class BenchmarkUtil
java.lang.Object
es.urjc.etsii.grafo.util.BenchmarkUtil
Benchmark helper methods
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Benchmark cachestatic final record
System info -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
getBenchmarkScore
(long seed) Run a small benchmark and return score.static BenchmarkUtil.BenchmarkCache
Tries to parse an existing benchmark filestatic BenchmarkUtil.BenchmarkCache
parseCache
(File f) Tries to parse an existing benchmark file
-
Constructor Details
-
BenchmarkUtil
public BenchmarkUtil()
-
-
Method Details
-
getBenchmarkScore
public static double getBenchmarkScore(long seed) Run a small benchmark and return score. Checks if benchmark file- Returns:
- score as a double
-
parseCache
Tries to parse an existing benchmark file- Returns:
- null if file does not exist or failed to parse the file
-
parseCache
Tries to parse an existing benchmark file- Parameters:
f
- file containing cached benchmark data- Returns:
- null if file does not exist or failed to parse the file
-