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

benchmark: add a benchmark for `hg push`

This is derived from `hg pull` and is a good first step.
parent 617f676b
No related branches found
No related tags found
No related merge requests found
[meta]
format="0"
name="hg.command.push"
method="simple-command"
[run]
copy-data-env = true
[simple-command]
command='hg push --force $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-push-local temporary-push-remote'
prepare-run = """
if [ ! -d temporary-push-local ]; then
hg -R $MAIN_REPO debugupdatecache;
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-local;
hg -R temporary-push-local unbundle $BUNDLE_PATH
hg -R temporary-push-local debugupdatecache;
fi
rm -rf temporary-push-remote
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-remote;
echo "$ISSUE6528_CONFIG" >> temporary-push-remote/.hg/hgrc
echo "$DELTA_PARENT_CONFIG" >> temporary-push-remote/.hg/hgrc
"""
[environment]
MAIN_REPO="DATA-VARS:mercurial.main-repo-path"
[simple-command.variants.dimensions.issue6528.default]
default=true
environment.ISSUE6528_CONFIG=""
[simple-command.variants.dimensions.issue6528.fix-incoming]
environment.ISSUE6528_CONFIG="[storage]\nrevlog.issue6528.fix-incoming=yes"
constraints.compatible-revision-range="2813d406b036::"
[simple-command.variants.dimensions.issue6528.disabled]
environment.ISSUE6528_CONFIG="[storage]\nrevlog.issue6528.fix-incoming=no"
[simple-command.variants.dimensions.reuse-external-delta-parent.default]
default=true
environment.DELTA_PARENT_CONFIG=""
[simple-command.variants.dimensions.reuse-external-delta-parent.yes]
environment.DELTA_PARENT_CONFIG="[storage]\nrevlog.reuse-external-delta-parent=yes"
constraints.compatible-revision-range="f6eff9e4de80::"
[simple-command.variants.dimensions.reuse-external-delta-parent.no]
environment.DELTA_PARENT_CONFIG="[storage]\nrevlog.reuse-external-delta-parent=no"
constraints.compatible-revision-range="f6eff9e4de80::"
[simple-command.variants.dimensions.revs.any-1-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-1-revs'
[simple-command.variants.dimensions.revs.any-10-extra-rev]
environment.BUNDLE_PATH = 'DATA-VARS:mercurial.bundles.any-10-revs'
[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::)'
[simple-command.variants.dimensions.revs.any-1000-extra-rev]
default=true
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::)'
[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::)'
[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::)'
......@@ -30,6 +30,7 @@
hg.command.files
hg.command.log
hg.command.pull
hg.command.push
hg.command.status
hg.command.unbundle
hg.command.update
......@@ -62,6 +63,8 @@
benchmarks/hg/log.pbd
hg.command.pull
benchmarks/hg/pull.pbd
hg.command.push
benchmarks/hg/push.pbd
hg.command.status
benchmarks/hg/status.pbd
hg.command.unbundle
......@@ -164,6 +167,22 @@
- any-1000-extra-rev (default)
- any-10000-extra-rev
- any-100000-extra-rev
hg.command.push
* issue6528:
- default (default)
- fix-incoming
- disabled
* reuse-external-delta-parent:
- default (default)
- yes
- no
* revs:
- 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)
......
......@@ -114,7 +114,7 @@
data environments: [OKAY]
available: 0
benchmarks: [OKAY]
available: 22
available: 23
results: [OKAY]
poulpe suites: [OKAY]
available bin setup: 1
......@@ -131,7 +131,7 @@
data environments: [OKAY]
available: 0
benchmarks: [OKAY]
available: 22
available: 23
results: [OKAY]
poulpe suites: [OKAY]
available bin setup: 1
......
......@@ -58,7 +58,8 @@
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/files.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/log.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/pull.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/push.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/status.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/unbundle.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/update.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/convert.pbd
......@@ -61,11 +62,10 @@
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/status.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/unbundle.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/update.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/convert.pbd
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/debug-delta-chain.pbd
no-filter-run using all variants
--------------------------------
$ poulpe den-generate-tasks --all-variants hg:MERCURIAL_VERSION=6.5.3 > tasks
$ wc -l < tasks
......@@ -66,8 +66,8 @@
no-filter-run using all variants
--------------------------------
$ poulpe den-generate-tasks --all-variants hg:MERCURIAL_VERSION=6.5.3 > tasks
$ wc -l < tasks
9?? (glob)
1058
$ sort --unique < tasks | wc -l
......@@ -73,5 +73,5 @@
$ sort --unique < tasks | wc -l
9?? (glob)
1058
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -91,5 +91,5 @@
> --data-env-filter mercurial.repo.graph.visible-revision-count="re:^1....$" \
> > tasks
$ wc -l < tasks
4?? (glob)
529
$ sort --unique < tasks | wc -l
......@@ -95,5 +95,5 @@
$ sort --unique < tasks | wc -l
4?? (glob)
529
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 foo hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 foo hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -110,5 +110,5 @@
> --data-env-filter name="ba-bar" \
> > tasks
$ wc -l < tasks
4?? (glob)
529
$ sort --unique < tasks | wc -l
......@@ -114,5 +114,5 @@
$ sort --unique < tasks | wc -l
4?? (glob)
529
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -156,5 +156,5 @@
> --benchmark-variant-filter files="re:^.*shuffled$" \
> > tasks
$ wc -l < tasks
8?? (glob)
990
$ sort --unique < tasks | wc -l
......@@ -160,5 +160,5 @@
$ sort --unique < tasks | wc -l
8?? (glob)
990
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-list-path-shuffled:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-list-path-shuffled:output=json:rev=tip
......
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