Skip to content
Snippets Groups Projects
Commit 9436a129667d authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: export

Add benchmark for export. One of the goal here is to track the important of
filtering on simple commands.
parent 8fcbbdb8b090
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,34 @@
"""diff of the 10th ancestors of the working copy"""
self.hg('diff', '--change', '.~10')
class ExportTestSuite(BaseTestSuite):
param_names = BaseTestSuite.param_names
params = BaseTestSuite.params
@benchmark_name('simple_command.read.export.bare.time_bench')
@params_as_kwargs
def time_export(self, *args, **kwargs):
"""export of the working copy parent itself"""
self.hg('export')
@benchmark_name('simple_command.read.export.change_wcp.time_bench')
@params_as_kwargs
def time_export_wcp(self, *args, **kwargs):
"""export of the working copy parent itself, explicitly"""
self.hg('export', '--rev', '.')
@benchmark_name('simple_command.read.export.change_10th_tip.time_bench')
@params_as_kwargs
def time_export_10th_tip(self, *args, **kwargs):
"""export of tenth changeset starting from repository tip"""
self.hg('export', '--rev', '-10')
@benchmark_name('simple_command.read.export.change_10th_anc.time_bench')
@params_as_kwargs
def time_export_10th_anc(self, *args, **kwargs):
"""export of the 10th ancestors of the working copy"""
self.hg('export', '--rev', '.~10')
class StatusTestSuite(BaseTestSuite):
param_names = BaseTestSuite.param_names + ["max_worker_count"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment