Package org.teavm.perf.report
Class ComparisonTable
java.lang.Object
org.teavm.perf.report.ComparisonTable
Groups results from different sources (backends, baseline files) by benchmark, mode and parameters.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatSlowdown(double slowdown) getRows()getSourceDescription(String source) referenceFor(ComparisonTable.Row row, BenchmarkResult result) Finds result to compare given result with.static doubleslowdown(BenchmarkResult result, BenchmarkResult referenceResult) Computes how many times result is slower than reference result.
-
Constructor Details
-
ComparisonTable
-
-
Method Details
-
getSources
-
getSourceDescription
-
getReference
-
getParamNames
-
getRows
-
shortName
-
referenceFor
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
nullif there's nothing to compare with.
-
slowdown
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
-