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

benchmark: add `--rev` variants to the pull/push benchmark

This makes for interesting variation, especially since that can simplify the
discovery quite a lot.
parent 74a67b45
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-remote;
hg -R temporary-pull-remote unbundle $BUNDLE_PATH
hg -R temporary-pull-remote debugupdatecache;
hg -R "$MAIN_REPO" log --rev tip -T '{node}\n' > LAST_COMMON.txt
hg -R temporary-pull-remote log --rev "heads(nodefromfile(LAST_COMMON.txt):)" -T '--rev {node} ' > OUT_NODES.txt
fi
rm -rf temporary-pull-local
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-local;
......@@ -68,3 +70,12 @@
# 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.explicit-rev.none]
default=true
[simple-command.variants.dimensions.explicit-rev.all-out-heads]
extend-command = " `cat OUT_NODES.txt`"
[simple-command.variants.dimensions.explicit-rev.tip]
extend-command = " --rev tip"
......@@ -14,6 +14,8 @@
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-local;
hg -R temporary-push-local unbundle $BUNDLE_PATH
hg -R temporary-push-local debugupdatecache;
hg -R "$MAIN_REPO" log --rev tip -T '{node}\n' > LAST_COMMON.txt
hg -R temporary-push-local log --rev "heads(nodefromfile(LAST_COMMON.txt):)" -T '--rev {node} ' > OUT_NODES.txt
fi
rm -rf temporary-push-remote
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-remote;
......@@ -76,3 +78,12 @@
# 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.explicit-rev.none]
default=true
[simple-command.variants.dimensions.explicit-rev.all-out-heads]
extend-command = " `cat OUT_NODES.txt`"
[simple-command.variants.dimensions.explicit-rev.tip]
extend-command = " --rev tip"
......@@ -153,6 +153,10 @@
- no (default)
- yes
hg.command.pull
* explicit-rev:
- none (default)
- all-out-heads
- tip
* issue6528:
- default (default)
- fix-incoming
......@@ -168,6 +172,10 @@
- any-10000-extra-rev
- any-100000-extra-rev
hg.command.push
* explicit-rev:
- none (default)
- all-out-heads
- tip
* issue6528:
- default (default)
- fix-incoming
......
......@@ -69,5 +69,5 @@
$ poulpe den-generate-tasks --all-variants hg:MERCURIAL_VERSION=6.5.3 > tasks
$ wc -l < tasks
1058
1418
$ sort --unique < tasks | wc -l
......@@ -73,5 +73,5 @@
$ sort --unique < tasks | wc -l
1058
1418
$ 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
529
709
$ sort --unique < tasks | wc -l
......@@ -95,5 +95,5 @@
$ sort --unique < tasks | wc -l
529
709
$ 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
529
709
$ sort --unique < tasks | wc -l
......@@ -114,5 +114,5 @@
$ sort --unique < tasks | wc -l
529
709
$ 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
990
1350
$ sort --unique < tasks | wc -l
......@@ -160,5 +160,5 @@
$ sort --unique < tasks | wc -l
990
1350
$ 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