[pypy-svn] r59975 - pypy/build/benchmem

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Nov 17 23:40:21 CET 2008


Author: xoraxax
Date: Mon Nov 17 23:40:20 2008
New Revision: 59975

Modified:
   pypy/build/benchmem/runbench.py
Log:
Do a GC collect in basetime and avoid site import to get kind of a lower bound.

Modified: pypy/build/benchmem/runbench.py
==============================================================================
--- pypy/build/benchmem/runbench.py	(original)
+++ pypy/build/benchmem/runbench.py	Mon Nov 17 23:40:20 2008
@@ -75,7 +75,7 @@
         print >>self.logstream
 
     def run(self):
-        cmds = [str(self.executable_full_path), '-c',  '''import sys; sys.stdout.write("F"); sys.stdout.flush(); raw_input()''']
+        cmds = [str(self.executable_full_path), '-S', '-c',  '''import sys, gc; gc.collect(); sys.stdout.write("F"); sys.stdout.flush(); raw_input()''']
         self.log("running %r" % (cmds, ))
         popen = Popen(cmds, shell=False, stdin=PIPE, stdout=PIPE, close_fds=True)
         self.write_benchheader()



More information about the Pypy-commit mailing list