##// END OF EJS Templates
perf: tweak tests for testing index performance improvements
Matt Mackall -
r16260:33fcad3c default
parent child Browse files
Show More
@@ -46,7 +46,7 b' def perfstatus(ui, repo, *pats):'
46 timer(lambda: sum(map(len, repo.status())))
46 timer(lambda: sum(map(len, repo.status())))
47
47
48 def perfheads(ui, repo):
48 def perfheads(ui, repo):
49 timer(lambda: len(repo.changelog.heads()))
49 timer(lambda: len(repo.changelog.headrevs()))
50
50
51 def perftags(ui, repo):
51 def perftags(ui, repo):
52 import mercurial.changelog, mercurial.manifest
52 import mercurial.changelog, mercurial.manifest
@@ -84,8 +84,8 b' def perfindex(ui, repo):'
84 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
84 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
85 n = repo["tip"].node()
85 n = repo["tip"].node()
86 def d():
86 def d():
87 repo.invalidate()
87 cl = mercurial.revlog.revlog(repo.sopener, "00changelog.i")
88 repo[n]
88 cl.rev(n)
89 timer(d)
89 timer(d)
90
90
91 def perfstartup(ui, repo):
91 def perfstartup(ui, repo):
General Comments 0
You need to be logged in to leave comments. Login now