contrib/perf.py
changeset 40681 c0a1686d9391
parent 40680 9d88ae5c635b
child 40682 4369c00a8ee1
--- a/contrib/perf.py	Mon Nov 19 22:55:07 2018 +0000
+++ b/contrib/perf.py	Mon Nov 19 23:14:46 2018 +0000
@@ -576,10 +576,12 @@
     """benchmark parsing bookmarks from disk to memory"""
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
-    def d():
+
+    def s():
         clearfilecache(repo, b'_bookmarks')
+    def d():
         repo._bookmarks
-    timer(d)
+    timer(d, setup=s)
     fm.end()
 
 @command(b'perfbundleread', formatteropts, b'BUNDLE')