[pypy-svn] r70740 - pypy/benchmarks/unladen_swallow

fijal at codespeak.net fijal at codespeak.net
Thu Jan 21 11:14:01 CET 2010


Author: fijal
Date: Thu Jan 21 11:14:00 2010
New Revision: 70740

Modified:
   pypy/benchmarks/unladen_swallow/perf.py
Log:
Grumble, forgotten to check that in


Modified: pypy/benchmarks/unladen_swallow/perf.py
==============================================================================
--- pypy/benchmarks/unladen_swallow/perf.py	(original)
+++ pypy/benchmarks/unladen_swallow/perf.py	Thu Jan 21 11:14:00 2010
@@ -612,6 +612,8 @@
 
 
 def QuantityDelta(old, new):
+    if old == 0 or new == 0:
+        return "uncomparable"
     if new > old:
         return "%.4fx larger" % (new / old)
     elif new < old:



More information about the Pypy-commit mailing list