[pypy-svn] r70124 - pypy/trunk/pypy/translator/benchmark
arigo at codespeak.net
arigo at codespeak.net
Tue Dec 15 11:13:20 CET 2009
Author: arigo
Date: Tue Dec 15 11:13:20 2009
New Revision: 70124
Added:
pypy/trunk/pypy/translator/benchmark/jitbench.py
Log:
Replace jitbench.py with one that runs all of bench-custom, with
default factors of 1, 2 and 5. The result is not uploaded anywhere;
it's printed to stdout, where it's possibly captured by buildbot.
Added: pypy/trunk/pypy/translator/benchmark/jitbench.py
==============================================================================
--- (empty file)
+++ pypy/trunk/pypy/translator/benchmark/jitbench.py Tue Dec 15 11:13:20 2009
@@ -0,0 +1,21 @@
+import sys, os
+from optparse import OptionParser
+
+parser = OptionParser()
+parser.add_option(
+ '--size-factor-list', dest='sizefactorlist',
+ default='1,2,5,1,2,5,1,2,5',
+ )
+options, args = parser.parse_args(sys.argv[1:])
+args = args or [sys.executable]
+executables = [os.path.abspath(executable) for executable in args]
+sizefactors = [int(s) for s in options.sizefactorlist.split(',')]
+
+os.chdir(os.path.dirname(sys.argv[0]) or '.')
+
+for sizefactor in sizefactors:
+ for executable in executables:
+ sys.argv[1:] = [executable, '--pickle=jitbench.benchmark_result',
+ '-v', '--no-cpython',
+ '--size-factor=%d' % sizefactor]
+ execfile('bench-custom.py')
More information about the Pypy-commit
mailing list