##// END OF EJS Templates
perf: add a perfloadmarkers command...
Pierre-Yves David -
r23485:ccb93e9a default
parent child Browse files
Show More
@@ -525,3 +525,12 b' def perfbranchmap(ui, repo, full=False):'
525 525 branchmap.read = oldread
526 526 branchmap.branchcache.write = oldwrite
527 527 fm.end()
528
529 @command('perfloadmarkers')
530 def perfloadmarkers(ui, repo):
531 """benchmark the time to parse the on-disk markers for a repo
532
533 Result is the number of markers in the repo."""
534 timer, fm = gettimer(ui)
535 timer(lambda: len(obsolete.obsstore(repo.sopener)))
536 fm.end()
General Comments 0
You need to be logged in to leave comments. Login now