Class ComparisonTable

java.lang.Object
org.teavm.perf.report.ComparisonTable

public final class ComparisonTable extends Object
Groups results from different sources (backends, baseline files) by benchmark, mode and parameters.
  • Constructor Details

  • Method Details

    • getSources

      public List<String> getSources()
    • getSourceDescription

      public String getSourceDescription(String source)
    • getReference

      public String getReference()
    • getParamNames

      public List<String> getParamNames()
    • getRows

      public List<ComparisonTable.Row> getRows()
    • shortName

      public String shortName(String benchmark)
    • referenceFor

      public BenchmarkResult referenceFor(ComparisonTable.Row row, BenchmarkResult result)
      Finds result to compare given result with. For results produced by TeaVM, it's the result of the same backend from one of the preceding sources (e.g. baseline file produced by previous version of TeaVM). Otherwise, it's the result from the first source.
      Returns:
      reference result or null if there's nothing to compare with.
    • slowdown

      public static double slowdown(BenchmarkResult result, BenchmarkResult referenceResult)
      Computes how many times result is slower than reference result. Values below 1 mean that result is faster.
      Returns:
      slowdown factor or NaN if results can't be compared.
    • formatSlowdown

      public static String formatSlowdown(double slowdown)