##// END OF EJS Templates
contrib: add a write microbenchmark to perf.py...
Simon Farnsworth -
r30977:5a9e4dc8 default
parent child Browse files
Show More
@@ -1269,6 +1269,17 b' def perflrucache(ui, size=4, gets=10000,'
1269 1269 timer(fn, title=title)
1270 1270 fm.end()
1271 1271
1272 @command('perfwrite', formatteropts)
1273 def perfwrite(ui, repo, **opts):
1274 """microbenchmark ui.write
1275 """
1276 timer, fm = gettimer(ui, opts)
1277 def write():
1278 for i in range(100000):
1279 ui.write(('Testing write performance\n'))
1280 timer(write)
1281 fm.end()
1282
1272 1283 def uisetup(ui):
1273 1284 if (util.safehasattr(cmdutil, 'openrevlog') and
1274 1285 not util.safehasattr(commands, 'debugrevlogopts')):
@@ -109,6 +109,7 b' perfstatus'
109 109 perfvolatilesets
110 110 benchmark the computation of various volatile set
111 111 perfwalk (no help text available)
112 perfwrite microbenchmark ui.write
112 113
113 114 (use 'hg help -v perfstatusext' to show built-in aliases and global options)
114 115 $ hg perfaddremove
General Comments 0
You need to be logged in to leave comments. Login now