tests: make a stab at approximating wall-clock times
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 04 Jan 2016 21:54:46 -0800
changeset 27636 21b363bd87dc
parent 27635 e9f099ede405
child 27637 b502138f5faa
tests: make a stab at approximating wall-clock times Vaguely empirical observations: * ".py" tests are about an order of magnitude faster than ".t" tests * dividing size by 1000 gives an approximation to wall-clock run time (in seconds) that is not completely ridiculous.
tests/run-tests.py
--- a/tests/run-tests.py	Mon Jan 04 21:54:46 2016 -0800
+++ b/tests/run-tests.py	Mon Jan 04 21:54:46 2016 -0800
@@ -1861,7 +1861,9 @@
                     for kw, mul in slow.items():
                         if kw in f:
                             val *= mul
-                    perf[f] = val
+                    if f.endswith('.py'):
+                        val /= 10.0
+                    perf[f] = val / 1000.0
                     return perf[f]
             tests.sort(key=sortkey)