[pypy-svn] r57021 - pypy/branch/garden-call-code/pypy/interpreter/callbench

pedronis at codespeak.net pedronis at codespeak.net
Wed Aug 6 01:27:32 CEST 2008


Author: pedronis
Date: Wed Aug  6 01:27:31 2008
New Revision: 57021

Modified:
   pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py
   pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py
Log:
let's ignore the fun (appcaller anyone) involved in d.update for now, use something more obscure but straighforward
 


Modified: pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py
==============================================================================
--- pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py	(original)
+++ pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py	Wed Aug  6 01:27:31 2008
@@ -1,14 +1,28 @@
 from sup import run
 
 def w(N, start):
-    d = {}
-    d1 = {}
+    l = []
     start()
     i = 0
     while i < N:
-        d.update(d1)
-        d.update(d1)
-        d.update(d1)
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
+        l.__init__()
         i+=1
     
 run(w, 1000)

Modified: pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py
==============================================================================
--- pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py	(original)
+++ pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py	Wed Aug  6 01:27:31 2008
@@ -1,15 +1,29 @@
 from sup import run
 
 def w(N, start):
-    d = {}
-    d1 = {}
+    l = []
     start()
     i = 0
-    u = dict.update
+    z = l.__init__
     while i < N:
-        u(d, d1)
-        u(d, d1)
-        u(d, d1)
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
+        z()
         i+=1
     
 run(w, 1000)



More information about the Pypy-commit mailing list