Mercurial > hg-stable
changeset 27636:21b363bd87dc
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.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 04 Jan 2016 21:54:46 -0800 |
parents | e9f099ede405 |
children | b502138f5faa |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)