[pypy-svn] r49452 - pypy/dist/pypy/translator/microbench
pedronis at codespeak.net
pedronis at codespeak.net
Thu Dec 6 17:43:28 CET 2007
Author: pedronis
Date: Thu Dec 6 17:43:27 2007
New Revision: 49452
Modified:
pypy/dist/pypy/translator/microbench/microbench.py
Log:
sprinkle a gc collect as armin suggested
Modified: pypy/dist/pypy/translator/microbench/microbench.py
==============================================================================
--- pypy/dist/pypy/translator/microbench/microbench.py (original)
+++ pypy/dist/pypy/translator/microbench/microbench.py Thu Dec 6 17:43:27 2007
@@ -4,7 +4,7 @@
implementations on a set of microbenchmarks. The script usally is started
with "./microbench.py python ./pypy" where pypy is a symlink to you pypy exectable."""
-import os, time, sys
+import os, time, sys, gc
microbenches = []
for fname in os.listdir('.'):
@@ -26,6 +26,7 @@
else:
continue
testcase = microbench + '.' + k + '()'
+ gc.collect()
start = time.clock()
n = 0
duration = 0.0
More information about the Pypy-commit
mailing list