[pypy-svn] r70625 - pypy/benchmarks
fijal at codespeak.net
fijal at codespeak.net
Fri Jan 15 21:01:51 CET 2010
Author: fijal
Date: Fri Jan 15 21:01:50 2010
New Revision: 70625
Modified:
pypy/benchmarks/runner.py
Log:
Scrap the need of pylib installed
Modified: pypy/benchmarks/runner.py
==============================================================================
--- pypy/benchmarks/runner.py (original)
+++ pypy/benchmarks/runner.py Fri Jan 15 21:01:50 2010
@@ -2,7 +2,7 @@
""" Usage: runner.py <result filename> <path to pypy-c>
"""
-import py
+import os
import json
import sys
from unladen_swallow.perf import main
@@ -10,10 +10,10 @@
def run_and_store(benchmarks, result_filename, pypy_c_path):
results = main(['-f', '-b', ','.join(benchmarks),
'--no_charts', sys.executable, pypy_c_path])
- py.path.local(result_filename).write(
- json.dumps([(name, result.__class__.__name__, result.__dict__)
- for name, result in results])
- )
+ f = open(str(result_filename), "w")
+ f.write(json.dumps([(name, result.__class__.__name__, result.__dict__)
+ for name, result in results]))
+ f.close()
if __name__ == '__main__':
BENCHMARK_SET = ['richards', 'slowspitfire', 'django', 'spambayes',
More information about the Pypy-commit
mailing list