Author: Lars Wassermann <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to