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

benchmark: add more diff testing

We add more variants of diffs. In particular we introduce diff based purely in
history.
parent 8890c744
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,36 @@
@params_as_kwargs
@use_workers
def time_emptydiff(self, *args, **kwargs):
self.hg('diff')
"""diff of the working copy with no changes"""
self.hg('diff')
@benchmark_name('simple_command.read.diff.to_10th_anc_empty_wc.time_bench')
@params_as_kwargs
@use_workers
def time_diff_to_10th_anc(self, *args, **kwargs):
"""diff of the working copy with no changes against an older ancestors"""
self.hg('diff', '--rev', '.~10')
@benchmark_name('simple_command.read.diff.change_wcp.time_bench')
@params_as_kwargs
@use_workers
def time_diff_wcp(self, *args, **kwargs):
"""diff of the working copy parent itself"""
self.hg('diff', '--change', '.')
@benchmark_name('simple_command.read.diff.change_10th_tip.time_bench')
@params_as_kwargs
@use_workers
def time_diff_10th_tip(self, *args, **kwargs):
"""diff of tenth changeset starting from repository tip"""
self.hg('diff', '--change', '-10')
@benchmark_name('simple_command.read.diff.change_10th_anc.time_bench')
@params_as_kwargs
@use_workers
def time_diff_10th_anc(self, *args, **kwargs):
"""diff of the 10th ancestors of the working copy"""
self.hg('diff', '--change', '.~10')
class StatusTestSuite(BaseTestSuite):
......
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