Download:
child 39:f435e3c69f4e
parent 37:beb7b8bbf3bc
38:c3db41612b8c
Anton Shestakov <av6@dwimlabs.net>, Mon, 24 Aug 2015 01:24:08 +0800
bench: print every benchmarking result

1 файлов изменено, 12 вставок(+), 1 удалений(-) [+]
bench.py file | annotate | diff | comparison | revisions
--- a/bench.py Mon Aug 24 01:21:36 2015 +0800
+++ b/bench.py Mon Aug 24 01:24:08 2015 +0800
@@ -187,6 +187,7 @@
makeclean()
nodes = getnodes(revsets)
numwidth = len(str(len(nodes)))
+ markwidth = max(len(mark) for mark in MARKS)
for i, node in enumerate(nodes, 1):
madelocal = False
@@ -206,7 +207,17 @@
madelocal = True
time = test(mark, dropcache=not cache)
- logging.info('%0*d/%0*d %s %s %s', numwidth, i, numwidth, len(nodes), node, mark, time)
+ if time is None:
+ status = 'noop'
+ elif oldtime is None:
+ status = 'new'
+ elif time < oldtime:
+ status = 'better'
+ else:
+ status = 'noop'
+ logging.info(
+ '%0*d/%0*d %s %-*s %s (%s)',
+ numwidth, i, numwidth, len(nodes), node, markwidth, mark, time, status)
if time is None:
continue