##// END OF EJS Templates
perf: move some of the perftags benchmark to the setup function...
Boris Feld -
r40718:4369c00a default
parent child Browse files
Show More
@@ -537,14 +537,15 b' def perftags(ui, repo, **opts):'
537 timer, fm = gettimer(ui, opts)
537 timer, fm = gettimer(ui, opts)
538 svfs = getsvfs(repo)
538 svfs = getsvfs(repo)
539 repocleartagscache = repocleartagscachefunc(repo)
539 repocleartagscache = repocleartagscachefunc(repo)
540 def t():
540 def s():
541 repo.changelog = mercurial.changelog.changelog(svfs)
541 repo.changelog = mercurial.changelog.changelog(svfs)
542 rootmanifest = mercurial.manifest.manifestrevlog(svfs)
542 rootmanifest = mercurial.manifest.manifestrevlog(svfs)
543 repo.manifestlog = mercurial.manifest.manifestlog(svfs, repo,
543 repo.manifestlog = mercurial.manifest.manifestlog(svfs, repo,
544 rootmanifest)
544 rootmanifest)
545 repocleartagscache()
545 repocleartagscache()
546 def t():
546 return len(repo.tags())
547 return len(repo.tags())
547 timer(t)
548 timer(t, setup=s)
548 fm.end()
549 fm.end()
549
550
550 @command(b'perfancestors', formatteropts)
551 @command(b'perfancestors', formatteropts)
General Comments 0
You need to be logged in to leave comments. Login now