##// END OF EJS Templates
perf: add perfmoonwalk command to walk the changelog backwards...
Brodie Rao -
r20178:74aea4be default
parent child Browse files
Show More
@@ -243,6 +243,18 b' def perflog(ui, repo, **opts):'
243 copies=opts.get('rename')))
243 copies=opts.get('rename')))
244 ui.popbuffer()
244 ui.popbuffer()
245
245
246 @command('perfmoonwalk')
247 def perfmoonwalk(ui, repo):
248 """benchmark walking the changelog backwards
249
250 This also loads the changelog data for each revision in the changelog.
251 """
252 def moonwalk():
253 for i in xrange(len(repo), -1, -1):
254 ctx = repo[i]
255 ctx.branch() # read changelog data (in addition to the index)
256 timer(moonwalk)
257
246 @command('perftemplating')
258 @command('perftemplating')
247 def perftemplating(ui, repo):
259 def perftemplating(ui, repo):
248 ui.pushbuffer()
260 ui.pushbuffer()
General Comments 0
You need to be logged in to leave comments. Login now