[pypy-commit] benchmarks single-run: fixes

fijal noreply at buildbot.pypy.org
Thu Aug 1 20:19:00 CEST 2013


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

Log:	fixes

diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -1,7 +1,7 @@
 import os
 import logging
 from unladen_swallow.perf import SimpleBenchmark, MeasureGeneric
-from unladen_swallow.perf import RawResult, SimpleResult, avg, ResultError
+from unladen_swallow.perf import RawResult, ResultError, _FindAllBenchmarks
 import subprocess
 
 def relative(*args):
@@ -50,7 +50,7 @@
                                       *args, **kwargs)
         except subprocess.CalledProcessError, e:
             return ResultError(e)
-        return SimpleResult(avg(data))
+        return RawResult(data)
     BM.func_name = 'BM_' + bm_name
 
     d[BM.func_name] = BM
@@ -217,3 +217,6 @@
                  extra_args=['--benchmark=LU', '100', '200'])
 _register_new_bm_base_only('scimark', 'scimark_FFT', globals(),
                  extra_args=['--benchmark=FFT', '1024', '1000'])
+
+if __name__ == '__main__':
+    print sorted(_FindAllBenchmarks(globals()).keys())


More information about the pypy-commit mailing list