[pypy-commit] benchmarks single-run: one more

fijal noreply at buildbot.pypy.org
Thu Aug 1 20:11:41 CEST 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: single-run
Changeset: r218:428d7feb4b7f
Date: 2013-08-01 20:11 +0200
http://bitbucket.org/pypy/benchmarks/changeset/428d7feb4b7f/

Log:	one more

diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -44,13 +44,13 @@
         bm_path = relative('own', name + '.py')
         return MeasureGeneric(python, options, bm_path, **opts)
 
-    def BM(base_python, changed_python, options, *args, **kwargs):
+    def BM(python, options, *args, **kwargs):
         try:
-            base_data = benchmark_function(base_python, options,
-                                           *args, **kwargs)
+            data = benchmark_function(python, options,
+                                      *args, **kwargs)
         except subprocess.CalledProcessError, e:
             return ResultError(e)
-        return SimpleResult(avg(base_data[0]))
+        return SimpleResult(avg(data))
     BM.func_name = 'BM_' + bm_name
 
     d[BM.func_name] = BM


More information about the pypy-commit mailing list