Skip to content

Commit 8863874

Browse files
author
Ed Page
committed
tests: Measure ascii perf
1 parent 5eb4665 commit 8863874

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

benchsuite/benchsuite.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ function bench_dir() {
9696
rg_j1_command="$rg_path --threads 1 bin $path"
9797
fi
9898
typos_command=""
99+
typos_ascii_command=""
99100
typos_j1_command=""
100101
if [[ ! -z $typos_path ]]; then
101102
typos_command="$typos_path $path"
103+
typos_ascii_command="$typos_path --no-unicode $path"
102104
typos_j1_command="$typos_path --threads 1 $path"
103105
fi
104106
misspell_rs_command=""
@@ -114,7 +116,7 @@ function bench_dir() {
114116
if [[ ! -z $codespell_path ]]; then
115117
codespell_command="$codespell_path $path"
116118
fi
117-
hyperfine --warmup 1 -i --export-json $report_prefix-rg.json --export-markdown $report_prefix-rg.md "$rg_command" "$rg_j1_command" "$typos_command" "$typos_j1_command" "$misspell_rs_command" "$misspell_go_command" "$codespell_command"
119+
hyperfine --warmup 1 -i --export-json $report_prefix-rg.json --export-markdown $report_prefix-rg.md "$rg_command" "$rg_j1_command" "$typos_command" "$typos_ascii_command" "$typos_j1_command" "$misspell_rs_command" "$misspell_go_command" "$codespell_command"
118120
cat $report_prefix-rg.md >> $output
119121
fi
120122
echo "" >> $output
@@ -139,8 +141,10 @@ function bench_file() {
139141
rg_command="$rg_path bin $path"
140142
fi
141143
typos_command=""
144+
typos_ascii_command=""
142145
if [[ ! -z $typos_path ]]; then
143146
typos_command="$typos_path $path"
147+
typos_ascii_command="$typos_path --no-unicode $path"
144148
fi
145149
misspell_rs_command=""
146150
if [[ ! -z $misspell_rs_path ]]; then
@@ -158,7 +162,7 @@ function bench_file() {
158162
if [[ ! -z $codespell_path ]]; then
159163
codespell_command="$codespell_path $path"
160164
fi
161-
hyperfine --warmup 1 -i --export-json $report_prefix-rg.json --export-markdown $report_prefix-rg.md "$rg_command" "$typos_command" "$misspell_rs_command" "$misspell_go_command" "$scspell_command" "$codespell_command"
165+
hyperfine --warmup 1 -i --export-json $report_prefix-rg.json --export-markdown $report_prefix-rg.md "$rg_command" "$typos_command" "$typos_ascii_command" "$misspell_rs_command" "$misspell_go_command" "$scspell_command" "$codespell_command"
162166
cat $report_prefix-rg.md >> $output
163167
fi
164168
echo "" >> $output

0 commit comments

Comments
 (0)