Mercurial > hg
comparison contrib/revsetbenchmarks.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 493034cc3265 |
children | ca7bde5dbafb |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
189 return 'x%ix%i' % (factor, order) | 189 return 'x%ix%i' % (factor, order) |
190 | 190 |
191 | 191 |
192 def formattiming(value): | 192 def formattiming(value): |
193 """format a value to strictly 8 char, dropping some precision if needed""" | 193 """format a value to strictly 8 char, dropping some precision if needed""" |
194 if value < 10**7: | 194 if value < 10 ** 7: |
195 return ('%.6f' % value)[:8] | 195 return ('%.6f' % value)[:8] |
196 else: | 196 else: |
197 # value is HUGE very unlikely to happen (4+ month run) | 197 # value is HUGE very unlikely to happen (4+ month run) |
198 return '%i' % value | 198 return '%i' % value |
199 | 199 |
369 | 369 |
370 print() | 370 print() |
371 print() | 371 print() |
372 | 372 |
373 for ridx, rset in enumerate(revsets): | 373 for ridx, rset in enumerate(revsets): |
374 | |
374 print("revset #%i: %s" % (ridx, rset)) | 375 print("revset #%i: %s" % (ridx, rset)) |
375 printheader(variants, len(results), verbose=options.verbose, relative=True) | 376 printheader(variants, len(results), verbose=options.verbose, relative=True) |
376 ref = None | 377 ref = None |
377 for idx, data in enumerate(results): | 378 for idx, data in enumerate(results): |
378 printresult( | 379 printresult( |