[pypy-svn] r57017 - pypy/branch/garden-call-code/pypy/interpreter/callbench
pedronis at codespeak.net
pedronis at codespeak.net
Tue Aug 5 23:55:39 CEST 2008
Author: pedronis
Date: Tue Aug 5 23:55:37 2008
New Revision: 57017
Added:
pypy/branch/garden-call-code/pypy/interpreter/callbench/bltn_instantiate.py
- copied unchanged from r57016, pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py
pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py (contents, props changed)
pypy/branch/garden-call-code/pypy/interpreter/callbench/inst_no_init.py (contents, props changed)
Removed:
pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna1.py
Log:
tweak benchmarks to cover some more cases
Added: pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py
==============================================================================
--- (empty file)
+++ pypy/branch/garden-call-code/pypy/interpreter/callbench/bltna2.py Tue Aug 5 23:55:37 2008
@@ -0,0 +1,15 @@
+from sup import run
+
+def w(N, start):
+ d = {}
+ d1 = {}
+ start()
+ i = 0
+ u = dict.update
+ while i < N:
+ u(d, d1)
+ u(d, d1)
+ u(d, d1)
+ i+=1
+
+run(w, 1000)
Added: pypy/branch/garden-call-code/pypy/interpreter/callbench/inst_no_init.py
==============================================================================
--- (empty file)
+++ pypy/branch/garden-call-code/pypy/interpreter/callbench/inst_no_init.py Tue Aug 5 23:55:37 2008
@@ -0,0 +1,22 @@
+from sup import run
+
+def w(N, start):
+ class A(object):
+ pass
+
+ start()
+ i = 0
+ while i < N:
+ A()
+ A()
+ A()
+ A()
+ A()
+ A()
+ A()
+ A()
+ A()
+ A()
+ i+=1
+
+run(w, 1000)
More information about the Pypy-commit
mailing list