[pypy-commit] lang-smalltalk default: added benchFib test

lwassermann noreply at buildbot.pypy.org
Thu Feb 28 19:18:34 CET 2013


Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch: 
Changeset: r108:e905c7889e43
Date: 2013-02-28 19:18 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/e905c7889e43/

Log:	added benchFib test

diff --git a/spyvm/test/test_bootstrappedimage.py b/spyvm/test/test_bootstrappedimage.py
--- a/spyvm/test/test_bootstrappedimage.py
+++ b/spyvm/test/test_bootstrappedimage.py
@@ -44,3 +44,13 @@
 
 def test_all_pointers_are_valid():
     tools.test_all_pointers_are_valid()
+    tools.test_lookup_abs_in_integer()
+
+def test_tinyBenchmarks():
+    # we can't find PCSystem, because Smalltalkdict is nil...
+    import time
+    t0 = time.time()
+    sends = perform(w(20), 'benchFib')
+    t1 = time.time()
+    t = t1 - t0
+    print str(tools.space.unwrap_int(sends)/t) + " sends per second"
\ No newline at end of file


More information about the pypy-commit mailing list