Add more benchmarks

This commit is contained in:
Fabian Boehm 2023-06-01 18:15:42 +02:00
parent 77337fdc8a
commit a913702b63
9 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,12 @@
set -l compdir (status dirname)/../../share/completions
cd $compdir
for file in *.fish
set -l bname (string replace -r '.fish$' '' -- $file)
if type -q $bname
source $file >/dev/null
if test $status -gt 0
echo FAILING FILE $file
end
end
end

View file

@ -0,0 +1,6 @@
set -l path (status dirname)
set -l fish (status fish-path)
for f in (seq 100)
echo $fish -n $path/aliases.fish
$fish -n $path/aliases.fish
end

View file

@ -0,0 +1 @@
printf (string repeat -n 200 \\x7f)%s\n (string repeat -n 2000 aaa\n)

View file

@ -0,0 +1,5 @@
for i in (seq 100000)
printf '%f\n' $i.$i
end
exit 0

View file

@ -0,0 +1,7 @@
set -l tmp (mktemp)
string repeat -n 2000 >$tmp
for i in (seq 1000)
cat $tmp | read -l foo
end
true

View file

@ -0,0 +1,3 @@
for abc in (seq 100000)
set -l def
end

View file

@ -0,0 +1,3 @@
for i in (string repeat -n 100 \n)
string repeat -n 50000 a\n
end

View file

@ -0,0 +1,3 @@
for i in (seq 100000)
string match '*o' fooooooo
end

View file

@ -0,0 +1,3 @@
for i in (seq 100000)
string match -r '^.*$' fooooooo
end | string match -re o