benchmarks: Use --no-config

It's existed since 3.3.0, so now seems to be an acceptable time to add
it.

(also adjust some repetitions a bit so they don't take too long)
This commit is contained in:
Fabian Boehm 2022-09-24 13:34:53 +02:00
parent 1204cf5eb6
commit f4797a0133
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
for i in (seq 2000)
for i in (seq 1000)
command true
end

View file

@ -3,6 +3,6 @@
# so it's best to build two fishes, check out one version of the repo,
# and then run this script with both.
set -l dir (dirname (status current-filename))
for i in (seq 1 100)
for i in (seq 1 10)
echo $dir/../../**
end

View file

@ -29,9 +29,9 @@ for benchmark in "$BENCHMARKS_DIR"/*; do
fi
if command -v hyperfine >/dev/null 2>&1; then
cmd1="$(quote "${FISH_PATH}") $(quote "$benchmark") > /dev/null"
cmd1="$(quote "${FISH_PATH}") --no-config $(quote "$benchmark")"
if [ -n "$FISH2_PATH" ]; then
cmd2="$(quote "${FISH2_PATH}") $(quote "$benchmark") > /dev/null"
cmd2="$(quote "${FISH2_PATH}") --no-config $(quote "$benchmark")"
hyperfine "$cmd1" "$cmd2"
else
hyperfine "$cmd1"