summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-04-12 18:16:11 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-04-12 18:16:11 +0200
commit572a89e12c38f2e22f24758f140faaab7658d277 (patch)
tree7fb10e73fc38e00a6b46a1e5f1d22be518bcc553
parente1602d9ba36a916b55e15e47f3c61e17d17afa89 (diff)
downloadcython-572a89e12c38f2e22f24758f140faaab7658d277.tar.gz
Test runner statistics: show the most time intensive test steps (compilatio/run/etc) first.
-rwxr-xr-xruntests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py
index 2840aeabf..6ce9ad25c 100755
--- a/runtests.py
+++ b/runtests.py
@@ -610,7 +610,7 @@ class Stats(object):
if not self.test_times:
return
lines = ['Times:\n']
- for metric, t in sorted(self.test_times.items()):
+ for metric, t in sorted(self.test_times.items(), key=operator.itemgetter(1), reverse=True):
count = self.test_counts[metric]
top = self.top_tests[metric]
lines.append("%-12s: %8.2f sec (%4d, %6.3f / run) - slowest: %s\n" % (