Commit 8a816e5f authored by Krzysztof Gogolewski's avatar Krzysztof Gogolewski Committed by Marge Bot

Sort deterministically metric output

Previously, we sorted according to the test name and way,
but the metrics (max_bytes_used/peak_megabytes_allocated etc.)
were appearing in nondeterministic order.
parent a1275081
Pipeline #19611 passed with stages
in 568 minutes and 20 seconds
......@@ -339,7 +339,7 @@ def cleanup_and_exit(exitcode):
exit(exitcode)
def tabulate_metrics(metrics: List[PerfMetric]) -> None:
for metric in sorted(metrics, key=lambda m: (m.stat.test, m.stat.way)):
for metric in sorted(metrics, key=lambda m: (m.stat.test, m.stat.way, m.stat.metric)):
print("{test:24} {metric:40} {value:15.3f}".format(
test = "{}({})".format(metric.stat.test, metric.stat.way),
metric = metric.stat.metric,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment