Commit d661723b authored by Mathieu Giraud's avatar Mathieu Giraud

benchmark-releases.py: bikeshed format for 'Memory' section

parent 758bd261
Pipeline #142638 passed with stages
in 183 minutes and 21 seconds
......@@ -190,12 +190,12 @@ def run_all(tag, args, retries):
stats[tag,release] = None
print()
def bench_line(f, release, stats, index):
def bench_line(f, release, stats, index, format='%8.2f'):
f.write('%-9s' % release)
for tag in BENCHS:
if (tag,release) in stats:
if stats[tag, release] is not None:
b = '%8.2f' % stats[tag,release][index]
b = format % stats[tag,release][index]
else:
b = '%8s' % 'x'
else:
......@@ -213,11 +213,11 @@ def show_benchs(f):
f.write('\nTime (s)\n')
for release in installed():
bench_line(f, release, stats, 0)
bench_line(f, release, stats, 0, '%8.2f')
f.write('\nMemory (MB)\n')
for release in installed():
bench_line(f, release, stats, 1)
bench_line(f, release, stats, 1, '%8d')
def bench_all(retries, selected_benchs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment