diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-29 16:09:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-29 16:09:02 +0100 |
| commit | bd4c3ae31019b2c6217f269a7623f6c2279067c1 (patch) | |
| tree | deb6918f27307cd564ecfd29f3ad5642567b4b13 | |
| parent | 92c691f29c5da9abca6a06605998e09f9b8103bb (diff) | |
Add another hack script.
| -rw-r--r-- | hacks/testtimings | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hacks/testtimings b/hacks/testtimings new file mode 100644 index 000000000..f4e808459 --- /dev/null +++ b/hacks/testtimings @@ -0,0 +1,22 @@ +#!/usr/bin/python + +import sys + +if len(sys.argv) < 2: + print>>sys.stderr,'Syntax %s <log>' % sys.argv[0] + sys.exit(1) + +tests = {} + +with open(sys.argv[1]) as f: + while True: + l = f.readline() + if l == '': + break + + s = l.split() + if len(s) == 7 and s[6][-3:] == 'mks': + tests[float(s[6][:-3]) / 1000000] = s[3][1:-2] + +for x in sorted(tests): + print x,tests[x] |
