Author: stian
Branch: improve-rbigint
Changeset: r56317:dfdf90fd7a0f
Date: 2012-06-22 20:16 +0200
http://bitbucket.org/pypy/pypy/changeset/dfdf90fd7a0f/
Log: Add another benchmark
diff --git a/pypy/translator/goal/targetbigintbenchmark.py
b/pypy/translator/goal/targetbigintbenchmark.py
--- a/pypy/translator/goal/targetbigintbenchmark.py
+++ b/pypy/translator/goal/targetbigintbenchmark.py
@@ -24,6 +24,15 @@
6.446812
"""
+
+ t = time()
+ i = rbigint.fromint(2**31)
+ i2 = rbigint.fromint(2**31)
+ for n in xrange(75000):
+ i = i.mul(i2)
+
+ print time() - t
+
t = time()
for n in xrange(10000):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit