summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-09 14:31:10 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-13 02:07:47 -0400
commit5d0f244528f8f7ba3058a4cf7b075a474c63fa1b (patch)
treee4318a0ddeef9abe4f92f0de82f62371d99f074c
parente34bf65613f0062ea902fb3d59623701b7cd01d5 (diff)
downloadhaskell-5d0f244528f8f7ba3058a4cf7b075a474c63fa1b.tar.gz
testsuite: Print sign of performance changes
Executes the minor formatting change in the tabulated performance changes suggested in #18135.
-rw-r--r--testsuite/driver/runtests.py4
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