mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
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:
parent
1204cf5eb6
commit
f4797a0133
|
@ -1,3 +1,3 @@
|
|||
for i in (seq 2000)
|
||||
for i in (seq 1000)
|
||||
command true
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user