Class BenchmarkUtil

java.lang.Object
es.urjc.etsii.grafo.util.BenchmarkUtil

public class BenchmarkUtil extends Object
Benchmark helper methods
  • 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

      public static BenchmarkUtil.BenchmarkCache parseCache()
      Tries to parse an existing benchmark file
      Returns:
      null if file does not exist or failed to parse the file
    • parseCache

      public static BenchmarkUtil.BenchmarkCache parseCache(File f)
      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