mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-26 01:33:44 +01:00
run-benchmarks.sh: Don't benchmark startup time syntaxes twice
This commit is contained in:
parent
e250da8aaa
commit
36c1ea4599
8
tests/benchmarks/run-benchmarks.sh
vendored
8
tests/benchmarks/run-benchmarks.sh
vendored
@ -95,7 +95,7 @@ cat "$RESULT_DIR/startup-time.md" >> "$REPORT"
|
|||||||
|
|
||||||
heading "Startup time with syntax highlighting"
|
heading "Startup time with syntax highlighting"
|
||||||
hyperfine \
|
hyperfine \
|
||||||
"$(printf "%q" "$BAT") --no-config --color=always test-src/small-CpuInfo-file.cpuinfo" \
|
"$(printf "%q" "$BAT") --no-config --color=always startup-time-src/small-CpuInfo-file.cpuinfo" \
|
||||||
--command-name "bat … small-CpuInfo-file.cpuinfo" \
|
--command-name "bat … small-CpuInfo-file.cpuinfo" \
|
||||||
--warmup "$WARMUP_COUNT" \
|
--warmup "$WARMUP_COUNT" \
|
||||||
--export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
|
--export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
|
||||||
@ -105,7 +105,7 @@ cat "$RESULT_DIR/startup-time-with-syntax-highlighting.md" >> "$REPORT"
|
|||||||
|
|
||||||
heading "Startup time with syntax with dependencies"
|
heading "Startup time with syntax with dependencies"
|
||||||
hyperfine \
|
hyperfine \
|
||||||
"$(printf "%q" "$BAT") --no-config --color=always test-src/small-Markdown-file.md" \
|
"$(printf "%q" "$BAT") --no-config --color=always startup-time-src/small-Markdown-file.md" \
|
||||||
--command-name "bat … small-Markdown-file.md" \
|
--command-name "bat … small-Markdown-file.md" \
|
||||||
--warmup "$WARMUP_COUNT" \
|
--warmup "$WARMUP_COUNT" \
|
||||||
--export-markdown "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" \
|
--export-markdown "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" \
|
||||||
@ -115,7 +115,7 @@ cat "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" >> "$REPORT"
|
|||||||
|
|
||||||
heading "Plain-text speed"
|
heading "Plain-text speed"
|
||||||
hyperfine \
|
hyperfine \
|
||||||
"$(printf "%q" "$BAT") --no-config --language=txt --style=plain test-src/numpy_test_multiarray.py" \
|
"$(printf "%q" "$BAT") --no-config --language=txt --style=plain highlighting-speed-src/numpy_test_multiarray.py" \
|
||||||
--command-name 'bat … --language=txt numpy_test_multiarray.py' \
|
--command-name 'bat … --language=txt numpy_test_multiarray.py' \
|
||||||
--warmup "$WARMUP_COUNT" \
|
--warmup "$WARMUP_COUNT" \
|
||||||
--export-markdown "$RESULT_DIR/plain-text-speed.md" \
|
--export-markdown "$RESULT_DIR/plain-text-speed.md" \
|
||||||
@ -123,7 +123,7 @@ hyperfine \
|
|||||||
cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"
|
cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"
|
||||||
|
|
||||||
|
|
||||||
for SRC in test-src/*; do
|
for SRC in highlighting-speed-src/*; do
|
||||||
filename="$(basename "$SRC")"
|
filename="$(basename "$SRC")"
|
||||||
|
|
||||||
heading "Syntax highlighting speed: \`$filename\`"
|
heading "Syntax highlighting speed: \`$filename\`"
|
||||||
|
Loading…
Reference in New Issue
Block a user