[pypy-svn] r57908 - pypy/branch/cross-compilation/pypy/translator/benchmark/memory
fijal at codespeak.net
fijal at codespeak.net
Sat Sep 6 21:42:43 CEST 2008
Author: fijal
Date: Sat Sep 6 21:42:38 2008
New Revision: 57908
Added:
pypy/branch/cross-compilation/pypy/translator/benchmark/memory/
pypy/branch/cross-compilation/pypy/translator/benchmark/memory/one.py (contents, props changed)
Log:
some benchmark
Added: pypy/branch/cross-compilation/pypy/translator/benchmark/memory/one.py
==============================================================================
--- (empty file)
+++ pypy/branch/cross-compilation/pypy/translator/benchmark/memory/one.py Sat Sep 6 21:42:38 2008
@@ -0,0 +1,14 @@
+
+class A(object):
+ pass
+
+class B(object):
+ def __init__(self):
+ self.a = [1,2,3]
+ self.b = "xyz"
+
+j = 0
+while j < 20:
+ x = [(A(), B()) for i in range(100000)]
+ del x
+ j += 1
More information about the Pypy-commit
mailing list