summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRune Halvorsen <runefh@gmail.com>2010-01-28 11:50:22 +0100
committerRune Halvorsen <runefh@gmail.com>2010-01-28 11:50:22 +0100
commite9a2655ae1480cb9f8b269b580171ca98e82324d (patch)
tree5725ee72ea18661617538d091cd4b662120a24a2
parentcde7c51c8ccf1d71c161cf2d39371900c73e3aff (diff)
downloadanyjson-e9a2655ae1480cb9f8b269b580171ca98e82324d.tar.gz
Fixed benchmarking script. Was choking when any of the modules to be
tested weren't available
-rw-r--r--tests/benchmark.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/benchmark.py b/tests/benchmark.py
index b9875dc..0c61a66 100644
--- a/tests/benchmark.py
+++ b/tests/benchmark.py
@@ -106,8 +106,11 @@ for e in modules:
do_benchmark(e, _deep , runs),
do_benchmark(e, _big, runs)))
-
+no_res = set([e for e in res if e[1] is None])
+res = list(set(res) - no_res)
res.sort(lambda a,b: cmp(sum(a[1:4]), sum(b[1:4])))
for e in res:
print "%.3f %s" % (sum(e[1:4]), e[0])
+for e in no_res:
+ print "Not installed:", e[0]