Add another hack script.
authorCarl Hetherington <cth@carlh.net>
Wed, 29 Jun 2016 15:09:02 +0000 (16:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 29 Jun 2016 15:09:02 +0000 (16:09 +0100)
hacks/testtimings [new file with mode: 0644]

diff --git a/hacks/testtimings b/hacks/testtimings
new file mode 100644 (file)
index 0000000..f4e8084
--- /dev/null
@@ -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]