diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-05-09 14:31:10 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-05-09 14:32:00 -0400 |
commit | 33e774e2e1dfe4cb53d7124adc34f04142d0d654 (patch) | |
tree | 3c4cd125911c3318d0b7eb076f8b5d28e979943d | |
parent | 86c77b36628dcce7bc9b066fc24c8c521fecc3ee (diff) | |
download | haskell-wip/T18135.tar.gz |
testsuite: Print sign of performance changeswip/T18135
Executes the minor formatting change in the tabulated performance
changes suggested in #18135.
-rw-r--r-- | testsuite/driver/runtests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py index d3bc1737fe..c1aff0bf0f 100644 --- a/testsuite/driver/runtests.py +++ b/testsuite/driver/runtests.py @@ -349,13 +349,13 @@ def tabulate_metrics(metrics: List[PerfMetric]) -> None: val0 = metric.baseline.perfStat.value val1 = metric.stat.value rel = 100 * (val1 - val0) / val0 - print("{space:24} {herald:40} {value:15.3f} [{direction} {rel:2.1f}%]".format( + print("{space:24} {herald:40} {value:15.3f} [{direction}, {rel:2.1f}%]".format( space = "", herald = "(baseline @ HEAD~{depth})".format( depth = metric.baseline.commitDepth), value = val0, direction = metric.change, - rel = abs(rel) + rel = rel )) # First collect all the tests to be run |