mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
tests: Measure ascii perf
This commit is contained in:
parent
5eb4665c83
commit
8863874e33
1 changed files with 6 additions and 2 deletions
|
@ -96,9 +96,11 @@ function bench_dir() {
|
||||||
rg_j1_command="$rg_path --threads 1 bin $path"
|
rg_j1_command="$rg_path --threads 1 bin $path"
|
||||||
fi
|
fi
|
||||||
typos_command=""
|
typos_command=""
|
||||||
|
typos_ascii_command=""
|
||||||
typos_j1_command=""
|
typos_j1_command=""
|
||||||
if [[ ! -z $typos_path ]]; then
|
if [[ ! -z $typos_path ]]; then
|
||||||
typos_command="$typos_path $path"
|
typos_command="$typos_path $path"
|
||||||
|
typos_ascii_command="$typos_path --no-unicode $path"
|
||||||
typos_j1_command="$typos_path --threads 1 $path"
|
typos_j1_command="$typos_path --threads 1 $path"
|
||||||
fi
|
fi
|
||||||
misspell_rs_command=""
|
misspell_rs_command=""
|
||||||
|
@ -114,7 +116,7 @@ function bench_dir() {
|
||||||
if [[ ! -z $codespell_path ]]; then
|
if [[ ! -z $codespell_path ]]; then
|
||||||
codespell_command="$codespell_path $path"
|
codespell_command="$codespell_path $path"
|
||||||
fi
|
fi
|
||||||
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"
|
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"
|
||||||
cat $report_prefix-rg.md >> $output
|
cat $report_prefix-rg.md >> $output
|
||||||
fi
|
fi
|
||||||
echo "" >> $output
|
echo "" >> $output
|
||||||
|
@ -139,8 +141,10 @@ function bench_file() {
|
||||||
rg_command="$rg_path bin $path"
|
rg_command="$rg_path bin $path"
|
||||||
fi
|
fi
|
||||||
typos_command=""
|
typos_command=""
|
||||||
|
typos_ascii_command=""
|
||||||
if [[ ! -z $typos_path ]]; then
|
if [[ ! -z $typos_path ]]; then
|
||||||
typos_command="$typos_path $path"
|
typos_command="$typos_path $path"
|
||||||
|
typos_ascii_command="$typos_path --no-unicode $path"
|
||||||
fi
|
fi
|
||||||
misspell_rs_command=""
|
misspell_rs_command=""
|
||||||
if [[ ! -z $misspell_rs_path ]]; then
|
if [[ ! -z $misspell_rs_path ]]; then
|
||||||
|
@ -158,7 +162,7 @@ function bench_file() {
|
||||||
if [[ ! -z $codespell_path ]]; then
|
if [[ ! -z $codespell_path ]]; then
|
||||||
codespell_command="$codespell_path $path"
|
codespell_command="$codespell_path $path"
|
||||||
fi
|
fi
|
||||||
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"
|
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"
|
||||||
cat $report_prefix-rg.md >> $output
|
cat $report_prefix-rg.md >> $output
|
||||||
fi
|
fi
|
||||||
echo "" >> $output
|
echo "" >> $output
|
||||||
|
|
Loading…
Reference in a new issue