Show More
@@ -1269,6 +1269,17 b' def perflrucache(ui, size=4, gets=10000,' | |||||
1269 | timer(fn, title=title) |
|
1269 | timer(fn, title=title) | |
1270 | fm.end() |
|
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 | def uisetup(ui): |
|
1283 | def uisetup(ui): | |
1273 | if (util.safehasattr(cmdutil, 'openrevlog') and |
|
1284 | if (util.safehasattr(cmdutil, 'openrevlog') and | |
1274 | not util.safehasattr(commands, 'debugrevlogopts')): |
|
1285 | not util.safehasattr(commands, 'debugrevlogopts')): |
@@ -109,6 +109,7 b' perfstatus' | |||||
109 | perfvolatilesets |
|
109 | perfvolatilesets | |
110 | benchmark the computation of various volatile set |
|
110 | benchmark the computation of various volatile set | |
111 | perfwalk (no help text available) |
|
111 | perfwalk (no help text available) | |
|
112 | perfwrite microbenchmark ui.write | |||
112 |
|
113 | |||
113 | (use 'hg help -v perfstatusext' to show built-in aliases and global options) |
|
114 | (use 'hg help -v perfstatusext' to show built-in aliases and global options) | |
114 | $ hg perfaddremove |
|
115 | $ hg perfaddremove |
General Comments 0
You need to be logged in to leave comments.
Login now