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

benchmark: add a benchmark for `hg files`

This one is mostly composed of the underlying issue that crippled cat. So lets
measure it too.
parent 3674705944b6
No related branches found
No related tags found
No related merge requests found
[meta]
format="0"
name="cat"
name="files"
method="simple-command"
[run]
copy-data-env = true
[simple-command]
......@@ -4,10 +4,12 @@
method="simple-command"
[run]
copy-data-env = true
[simple-command]
command='hg cat $REV "$FILES" $TEMPLATE > /dev/null'
command="""
hg files $REV $FILES $TEMPLATE --config ui.interactive=no --config ui.paginate=no
"""
cwd="DATA-VARS:mercurial.main-repo-path"
prepare-run = """
# XXX We could only do this once before the benchmark instead of doing this for
......@@ -22,4 +24,8 @@
shuf ../all_sorted.pattern --random-source=../all_sorted.pattern > ../all_suffled.pattern;
"""
[simple-command.variants.dimensions.rev.working-copy]
default=true
environment.REV=""
[simple-command.variants.dimensions.rev.tip]
......@@ -25,5 +31,4 @@
[simple-command.variants.dimensions.rev.tip]
default=true
environment.REV="--rev tip"
[simple-command.variants.dimensions.output.plain]
......@@ -33,5 +38,7 @@
[simple-command.variants.dimensions.output.json]
environment.TEMPLATE="--template json"
[simple-command.variants.dimensions.files.plain]
default=true
[simple-command.variants.dimensions.files.all-root]
......@@ -36,6 +43,5 @@
[simple-command.variants.dimensions.files.all-root]
default=true
environment.FILES="."
[simple-command.variants.dimensions.files.all-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