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

benchmark: add various benchmark for the status command

This cover various status mode.

XXX There is a `perfstatus` command that we might be interesting in.
parent 46f24a3c
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,32 @@
def time_emptydiff(self, *args, **kwargs):
self.hg('diff')
class StatusTestSuite(BaseTestSuite):
@benchmark_name('simple_command.read.status.wc_clean.default.time_bench')
def time_status_wc_clean_default(self, *args, **kwargs):
self.hg('status')
@benchmark_name('simple_command.read.status.wc_clean.acdmr.time_bench')
def time_status_wc_clean_acdmr(self, *args, **kwargs):
self.hg('status', '--added', '--modified', '--removed', '--deleted', '--clean')
@benchmark_name('simple_command.read.status.wc_clean.admr.time_bench')
def time_status_wc_clean_admr(self, *args, **kwargs):
self.hg('status', '--added', '--modified', '--removed', '--deleted')
@benchmark_name('simple_command.read.status.wc_clean.admru.time_bench')
def time_status_wc_clean_admru(self, *args, **kwargs):
self.hg('status', '--added', '--modified', '--removed', '--deleted', '--unknown')
@benchmark_name('simple_command.read.status.wc_clean.adimru.time_bench')
def time_status_wc_clean_adimru(self, *args, **kwargs):
self.hg('status', '--added', '--modified', '--removed', '--deleted', '--unknown', '--ignored')
@benchmark_name('simple_command.read.status.wc_clean.all.time_bench')
def time_status_wc_clean_all(self, *args, **kwargs):
self.hg('status', '--all')
# class TimeTestSuite(BaseTestSuite):
#
......
......@@ -115,7 +115,7 @@
downloading repo
partial reference: same
downloading repo
$ ASV_SKIP_SYSTEM_CHECK=1 $PYTHON ./launch.py -q fe3ca1e6 -b track_commit
$ ASV_SKIP_SYSTEM_CHECK=1 $PYTHON ./launch.py -q fe3ca1e6 -b track_commit --no-pull
+ asv machine --yes
* (glob)
* (glob)
......
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