diff options
-rw-r--r-- | testsuite/driver/runtests.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py index 5510adfdef..6a68b67714 100644 --- a/testsuite/driver/runtests.py +++ b/testsuite/driver/runtests.py @@ -419,15 +419,19 @@ def tabulate_metrics(metrics: List[PerfMetric]) -> None: "{}".format(x.change.hint()) )) for x in sorted(metrics, key = lambda m: (m.stat.test, m.stat.way, m.stat.metric))] - geoMean = geometric_mean([ + + changes = [ x.stat.value / x.baseline.perfStat.value for x in metrics if x.baseline is not None - ]) + ] dataRows += [ row(("", "", "", "", "", "", "", "")), - row(("geo. mean", "", "", "", "", "", "{:+4.1f}%".format(100*(geoMean-1)), "")) + row(("geo. mean", "", "", "", "", "", "{:+4.1f}%".format(100*(geometric_mean(changes)-1)), "")), + row(("minimum ", "", "", "", "", "", "{:+4.1f}%".format(100*(min(changes)-1)), "")), + row(("maximum ", "", "", "", "", "", "{:+4.1f}%".format(100*(max(changes)-1)), "")), ] + print_table(headerRows, dataRows, 1) print("") if hasBaseline: |