[pypy-commit] benchmarks single-run: fix
fijal
noreply at buildbot.pypy.org
Thu Aug 1 20:04:35 CEST 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: single-run
Changeset: r217:e1ff20a040f8
Date: 2013-08-01 20:04 +0200
http://bitbucket.org/pypy/benchmarks/changeset/e1ff20a040f8/
Log: fix
diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -172,7 +172,7 @@
result = []
for name, time in timings:
- data = RawResult([time], None)
+ data = RawResult([time])
result.append((name, data))
return result
BM_translate.benchmark_name = 'trans2'
@@ -202,7 +202,7 @@
print err
raise Exception("sphinx-build.py failed")
res = float(out.splitlines()[-1])
- return RawResult(res)
+ return RawResult([res])
BM_cpython_doc.benchmark_name = 'sphinx'
diff --git a/unladen_swallow/perf.py b/unladen_swallow/perf.py
--- a/unladen_swallow/perf.py
+++ b/unladen_swallow/perf.py
@@ -386,12 +386,11 @@
% self.__dict__)
class RawResult(object):
- def __init__(self, base_times, changed_times):
- self.base_times = base_times
- self.changed_times = changed_times
+ def __init__(self, times):
+ self.times = times
def string_representation(self):
- return "Raw results: %s %s" % (self.base_times, self.changed_times)
+ return "Raw results: %s" % (self.times,)
def CompareMemoryUsage(base_usage, changed_usage, options):
"""Like CompareMultipleRuns, but for memory usage."""
More information about the pypy-commit
mailing list