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-14 14:06:31 +0200
commitc0d5282d5100975311f77895297f9e069d7075a0 (patch)
treec259f4900ec7661f90e3ff2ce5131d8630699daf
parentdd7fd780843efc014ccbe5844b10f3ac53395e76 (diff)
downloadcython-c0d5282d5100975311f77895297f9e069d7075a0.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 7e76dfea5..9e1c05509 100755
--- a/runtests.py
+++ b/runtests.py
@@ -593,7 +593,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" % (