mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
run-benchmarks: Benchmark both --wrap=character and --wrap=never
This commit is contained in:
parent
36c1ea4599
commit
6d0eb0749e
8
tests/benchmarks/run-benchmarks.sh
vendored
8
tests/benchmarks/run-benchmarks.sh
vendored
@ -123,14 +123,16 @@ hyperfine \
|
|||||||
cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"
|
cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"
|
||||||
|
|
||||||
|
|
||||||
for SRC in highlighting-speed-src/*; do
|
for wrap in character never; do
|
||||||
|
for SRC in highlighting-speed-src/*; do
|
||||||
filename="$(basename "$SRC")"
|
filename="$(basename "$SRC")"
|
||||||
|
|
||||||
heading "Syntax highlighting speed: \`$filename\`"
|
heading "Syntax highlighting speed --wrap=${wrap}: \`$filename\`"
|
||||||
hyperfine --warmup "$WARMUP_COUNT" \
|
hyperfine --warmup "$WARMUP_COUNT" \
|
||||||
"$(printf "%q" "$BAT") --no-config --style=full --color=always --wrap=character --terminal-width=80 '$SRC'" \
|
"$(printf "%q" "$BAT") --no-config --style=full --color=always --wrap=${wrap} --terminal-width=80 '$SRC'" \
|
||||||
--command-name "bat … ${filename}" \
|
--command-name "bat … ${filename}" \
|
||||||
--export-markdown "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" \
|
--export-markdown "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" \
|
||||||
--export-json "$RESULT_DIR/syntax-highlighting-speed-${filename}.json"
|
--export-json "$RESULT_DIR/syntax-highlighting-speed-${filename}.json"
|
||||||
cat "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" >> "$REPORT"
|
cat "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" >> "$REPORT"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user