##// END OF EJS Templates
revsetbenchmark: do not abort on failure to run a revset...
Pierre-Yves David -
r25646:57e7a060 default
parent child Browse files
Show More
@@ -62,7 +62,7 b' def perf(revset, target=None):'
62 print >> sys.stderr, '(no ouput)'
62 print >> sys.stderr, '(no ouput)'
63 else:
63 else:
64 print >> sys.stderr, exc.output
64 print >> sys.stderr, exc.output
65 sys.exit(exc.returncode)
65 return None
66
66
67 outputre = re.compile(r'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) '
67 outputre = re.compile(r'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) '
68 'sys (\d+.\d+) \(best of (\d+)\)')
68 'sys (\d+.\d+) \(best of (\d+)\)')
@@ -160,8 +160,13 b' def formattiming(value):'
160 def printresult(variants, idx, data, maxidx, verbose=False, reference=_marker):
160 def printresult(variants, idx, data, maxidx, verbose=False, reference=_marker):
161 """print a line of result to stdout"""
161 """print a line of result to stdout"""
162 mask = '%%0%ii) %%s' % idxwidth(maxidx)
162 mask = '%%0%ii) %%s' % idxwidth(maxidx)
163
163 out = []
164 out = []
164 for var in variants:
165 for var in variants:
166 if data[var] is None:
167 out.append('error ')
168 out.append(' ' * 4)
169 continue
165 out.append(formattiming(data[var]['wall']))
170 out.append(formattiming(data[var]['wall']))
166 if reference is not _marker:
171 if reference is not _marker:
167 factor = None
172 factor = None
General Comments 0
You need to be logged in to leave comments. Login now