[pypy-svn] r62830 - pypy/branch/speedup-globals/pypy/translator/microbench

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Mar 10 20:38:31 CET 2009


Author: cfbolz
Date: Tue Mar 10 20:38:30 2009
New Revision: 62830

Modified:
   pypy/branch/speedup-globals/pypy/translator/microbench/test_count1.py
Log:
two more microbenchmarks


Modified: pypy/branch/speedup-globals/pypy/translator/microbench/test_count1.py
==============================================================================
--- pypy/branch/speedup-globals/pypy/translator/microbench/test_count1.py	(original)
+++ pypy/branch/speedup-globals/pypy/translator/microbench/test_count1.py	Tue Mar 10 20:38:30 2009
@@ -201,3 +201,15 @@
         y = y + 1
         c += 1
     
+def test_count_with_True():
+    x = 0
+    n = N
+    while x < n:
+        x = x + True
+
+increment = 1
+def test_count_with_global_increment():
+    x = 0
+    n = N
+    while x < n:
+        x = x + increment



More information about the Pypy-commit mailing list