Skip to content

Commit

Permalink
run-benchmarks.sh: Don't benchmark startup time syntaxes twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Enselic committed Dec 8, 2021
1 parent e250da8 commit 36c1ea4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/benchmarks/run-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ cat "$RESULT_DIR/startup-time.md" >> "$REPORT"

heading "Startup time with syntax highlighting"
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" \
--warmup "$WARMUP_COUNT" \
--export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
Expand All @@ -105,7 +105,7 @@ cat "$RESULT_DIR/startup-time-with-syntax-highlighting.md" >> "$REPORT"

heading "Startup time with syntax with dependencies"
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" \
--warmup "$WARMUP_COUNT" \
--export-markdown "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" \
Expand All @@ -115,15 +115,15 @@ cat "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" >> "$REPORT"

heading "Plain-text speed"
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' \
--warmup "$WARMUP_COUNT" \
--export-markdown "$RESULT_DIR/plain-text-speed.md" \
--export-json "$RESULT_DIR/plain-text-speed.json"
cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"


for SRC in test-src/*; do
for SRC in highlighting-speed-src/*; do
filename="$(basename "$SRC")"

heading "Syntax highlighting speed: \`$filename\`"
Expand Down

0 comments on commit 36c1ea4

Please sign in to comment.