[pypy-svn] r30578 - pypy/dist/pypy/translator/goal
ericvrp at codespeak.net
ericvrp at codespeak.net
Wed Jul 26 16:04:55 CEST 2006
Author: ericvrp
Date: Wed Jul 26 16:04:53 2006
New Revision: 30578
Modified:
pypy/dist/pypy/translator/goal/bench-cronjob.py
pypy/dist/pypy/translator/goal/bench-unix.py
Log:
this might fix the current mess on the benchmark.html page
Modified: pypy/dist/pypy/translator/goal/bench-cronjob.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-cronjob.py (original)
+++ pypy/dist/pypy/translator/goal/bench-cronjob.py Wed Jul 26 16:04:53 2006
@@ -134,8 +134,8 @@
def main(backends=[]):
if backends == []: #_ prefix means target specific option
- backends = """llvm at c@c--gc=framework at c--_thread@c--stackless at c--gc=framework--cc=c++ at c--cc=c++""".split('@')
- #backends = """llvm at c@c--gc=framework at c--_thread@c--stackless at c--gc=framework--cc=c++ at c--cc=c++ at c--profopt='-c "from richards import *;main(iterations=1)"'""".split('@')
+ #backends = """llvm at c@c--gc=framework at c--_thread@c--stackless at c--gc=framework--cc=c++ at c--cc=c++""".split('@')
+ backends = """llvm at c@c--gc=framework at c--_thread@c--stackless at c--gc=framework--cc=c++ at c--cc=c++ at c--profopt='-c "from richards import *;main(iterations=1)"'""".split('@')
#backends = 'llvm c c--gc=framework c--_thread c--stackless'.split()
#backends = 'llvm c c--gc=framework c--new-stackless c--_thread'.split()
#backends = 'llvm c c--stackless c--_thread c--stackless--_thread'.split()
Modified: pypy/dist/pypy/translator/goal/bench-unix.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-unix.py (original)
+++ pypy/dist/pypy/translator/goal/bench-unix.py Wed Jul 26 16:04:53 2006
@@ -68,12 +68,12 @@
def run_pystone(executable='/usr/local/bin/python', n=0):
argstr = PYSTONE_CMD % (str(n) and n or '')
- txt = run_cmd('%s -c "%s"' % (executable, argstr))
+ txt = run_cmd('"%s" -c "%s"' % (executable, argstr))
return get_result(txt, PYSTONE_PATTERN)
def run_richards(executable='/usr/local/bin/python', n=5):
argstr = RICHARDS_CMD % n
- txt = run_cmd('%s -c "%s"' % (executable, argstr))
+ txt = run_cmd('"%s" -c "%s"' % (executable, argstr))
return get_result(txt, RICHARDS_PATTERN)
def get_executables(): #sorted by revision number (highest first)
@@ -123,7 +123,7 @@
benchmark_result.update(p, run_pystone(exe), PYSTONE_ASCENDING_GOOD)
stone = benchmark_result.get_best_result(p)
- codesize = os.popen('size %s | tail -n1 | cut -f1'%(exename,)).read().strip()
+ codesize = os.popen('size "%s" | tail -n1 | cut -f1'%(exename,)).read().strip()
print fmt % (ctime, os.path.getsize(exe), codesize, exename, rich, rich / ref_rich, stone, ref_stone / stone)
sys.stdout.flush()
More information about the Pypy-commit
mailing list