[pypy-svn] r23011 - pypy/dist/pypy/translator/microbench
pedronis at codespeak.net
pedronis at codespeak.net
Fri Feb 3 21:59:15 CET 2006
Author: pedronis
Date: Fri Feb 3 21:59:14 2006
New Revision: 23011
Modified:
pypy/dist/pypy/translator/microbench/test_count1.py
Log:
another microbench
more comparable to test_call_sin.
Also int vs float showcase.
Modified: pypy/dist/pypy/translator/microbench/test_count1.py
==============================================================================
--- pypy/dist/pypy/translator/microbench/test_count1.py (original)
+++ pypy/dist/pypy/translator/microbench/test_count1.py Fri Feb 3 21:59:14 2006
@@ -26,6 +26,17 @@
while x < n:
x = plus2(x)
+def test_call_nested_function_other_count():
+ def plus2(x):
+ return x + 1.0
+
+ x = 0.0
+ c = 0
+ n = N
+ while c < n:
+ x = plus2(x)
+ c += 1
+
def test_call_nested_function_many_args():
def plus2(x, y1, y2, y3, y4):
return x + 1
More information about the Pypy-commit
mailing list