[pypy-svn] r24882 - pypy/dist/pypy/translator/microbench

pedronis at codespeak.net pedronis at codespeak.net
Thu Mar 23 15:32:13 CET 2006


Author: pedronis
Date: Thu Mar 23 15:32:12 2006
New Revision: 24882

Modified:
   pypy/dist/pypy/translator/microbench/test_bltn.py
Log:
another micronbench I had around.



Modified: pypy/dist/pypy/translator/microbench/test_bltn.py
==============================================================================
--- pypy/dist/pypy/translator/microbench/test_bltn.py	(original)
+++ pypy/dist/pypy/translator/microbench/test_bltn.py	Thu Mar 23 15:32:12 2006
@@ -10,3 +10,13 @@
     while c < n:
         x = sin(x)
         c += 1
+
+def test_call_fabs():
+    from math import fabs
+    
+    x = -1.0
+    c = 0
+    n = N
+    while c < n:
+        x = fabs(x)
+        c += 1



More information about the Pypy-commit mailing list