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

benchmark: rework the pull benchmark

We use the same approach as for bundle, for great results.
parent 2b1f0497
No related branches found
No related tags found
No related merge requests found
......@@ -7,5 +7,5 @@
copy-data-env = true
[simple-command]
command='hg pull $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-pull-source "$MAIN_REPO"'
command='hg pull $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-pull-local temporary-pull-remote'
prepare-run = """
......@@ -11,8 +11,12 @@
prepare-run = """
rm -rf temporary-pull-source;
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-source;
hg -R temporary-pull-source --config extensions.strip= strip --no-backup "$REVS";
hg -R temporary-pull-source debugupdatecache;
if [ ! -d temporary-pull-remote ]; then
hg -R $MAIN_REPO debugupdatecache;
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-remote;
hg -R temporary-pull-remote unbundle $BUNDLE_PATH
hg -R temporary-pull-remote debugupdatecache;
fi
rm -rf temporary-pull-local
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-local;
"""
[environment]
MAIN_REPO="DATA-VARS:mercurial.main-repo-path"
......@@ -34,6 +38,6 @@
environment.PULLED_DELTA_REUSE_CFG="--config 'paths.*:pulled-delta-reuse-policy=forced'"
constraints.compatible-revision-range="f35cf52acabd::"
[simple-command.variants.dimensions.revs.last-100000]
environment.REVS="last(all(), 100000)"
[simple-command.variants.dimensions.revs.any-1-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-1-revs'
......@@ -39,8 +43,4 @@
[simple-command.variants.dimensions.revs.last-100000.constraints.graph]
visible-revision-count.min=100000
[simple-command.variants.dimensions.revs.last-40000]
environment.REVS="last(all(), 40000)"
[simple-command.variants.dimensions.revs.any-10-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-10-revs'
......@@ -46,16 +46,7 @@
[simple-command.variants.dimensions.revs.last-40000.constraints.graph]
visible-revision-count.min=40000
[simple-command.variants.dimensions.revs.last-10000]
environment.REVS="last(all(), 10000)"
[simple-command.variants.dimensions.revs.last-10000.constraints.graph]
visible-revision-count.min=10000
[simple-command.variants.dimensions.revs.last-1000]
default=true
environment.REVS="last(all(), 1000)"
[simple-command.variants.dimensions.revs.any-100-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-100-revs'
# some 2**N behavior prevent reasonable pulling time for set of revision
# introduced in 23950e39281f, fixed in c9ceb4f60256
compatible-revision-range= 'not (23950e39281f:: and not c9ceb4f60256::)'
......@@ -61,12 +52,8 @@
[simple-command.variants.dimensions.revs.last-1000.constraints.graph]
visible-revision-count.min=1000
[simple-command.variants.dimensions.revs.last-100]
environment.REVS="last(all(), 100)"
[simple-command.variants.dimensions.revs.last-100.constraints.graph]
visible-revision-count.min=100
[simple-command.variants.dimensions.revs.any-1000-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-1000-revs'
# some 2**N behavior prevent reasonable pulling time for set of revision
# introduced in 23950e39281f, fixed in c9ceb4f60256
compatible-revision-range= 'not (23950e39281f:: and not c9ceb4f60256::)'
default=true
......@@ -72,8 +59,7 @@
[simple-command.variants.dimensions.revs.last-10]
environment.REVS="last(all(), 10)"
[simple-command.variants.dimensions.revs.last-10.constraints.graph]
visible-revision-count.min=10
[simple-command.variants.dimensions.revs.any-10000-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-10000-revs'
# some 2**N behavior prevent reasonable pulling time for set of revision
# introduced in 23950e39281f, fixed in c9ceb4f60256
compatible-revision-range= 'not (23950e39281f:: and not c9ceb4f60256::)'
......@@ -79,7 +65,6 @@
[simple-command.variants.dimensions.revs.last-1]
environment.REVS="last(all(), 1)"
[simple-command.variants.dimensions.revs.last-1.constraints.graph]
visible-revision-count.min=1
[simple-command.variants.dimensions.revs.any-100000-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-100000-revs'
# some 2**N behavior prevent reasonable pulling time for set of revision
# introduced in 23950e39281f, fixed in c9ceb4f60256
compatible-revision-range= 'not (23950e39281f:: and not c9ceb4f60256::)'
......@@ -158,13 +158,12 @@
- default (default)
- forced
* revs:
- last-100000
- last-40000
- last-10000
- last-1000 (default)
- last-100
- last-10
- last-1
- any-1-extra-rev
- any-10-extra-rev
- any-100-extra-rev
- any-1000-extra-rev (default)
- any-10000-extra-rev
- any-100000-extra-rev
hg.command.status
* list-copies:
- no (default)
......
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