on master help sign in
run-benchmarks.sh: Don't benchmark startup time syntaxes twice
commit36c1ea459931008c1b19695bfc6001554d6a89ca authorMartin Nordholts <enselic@gmail.com> dateWed 8 Dec 2021, 11:31 (5 years ago) parente250da8
7 files changed+4−4
tests/benchmarks/test-src/grep-output-ansi-sequences.txt → tests/benchmarks/highlighting-speed-src/grep-output-ansi-sequences.txt tests/benchmarks/test-src/jquery.js → tests/benchmarks/highlighting-speed-src/jquery.js tests/benchmarks/test-src/miniz.c → tests/benchmarks/highlighting-speed-src/miniz.c tests/benchmarks/test-src/numpy_test_multiarray.py → tests/benchmarks/highlighting-speed-src/numpy_test_multiarray.py tests/benchmarks/run-benchmarks.sh+4−4 tests/benchmarks/test-src/small-CpuInfo-file.cpuinfo → tests/benchmarks/startup-time-src/small-CpuInfo-file.cpuinfo tests/benchmarks/test-src/small-Markdown-file.md → tests/benchmarks/startup-time-src/small-Markdown-file.md
tests/benchmarks/test-src/grep-output-ansi-sequences.txt → tests/benchmarks/highlighting-speed-src/grep-output-ansi-sequences.txtrenamed

The content is the same.

tests/benchmarks/test-src/jquery.js → tests/benchmarks/highlighting-speed-src/jquery.jsrenamed

The content is the same.

tests/benchmarks/test-src/miniz.c → tests/benchmarks/highlighting-speed-src/miniz.crenamed

The content is the same.

tests/benchmarks/test-src/numpy_test_multiarray.py → tests/benchmarks/highlighting-speed-src/numpy_test_multiarray.pyrenamed

The content is the same.

tests/benchmarks/run-benchmarks.sh+4−4
@@ -95,7 +95,7 @@ cat "$RESULT_DIR/startup-time.md" >> "$REPORT"
9595
9696heading "Startup time with syntax highlighting"
9797hyperfine \
98− "$(printf "%q" "$BAT") --no-config --color=always test-src/small-CpuInfo-file.cpuinfo" \
98+ "$(printf "%q" "$BAT") --no-config --color=always startup-time-src/small-CpuInfo-file.cpuinfo" \
9999 --command-name "bat … small-CpuInfo-file.cpuinfo" \
100100 --warmup "$WARMUP_COUNT" \
101101 --export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
@@ -105,7 +105,7 @@ cat "$RESULT_DIR/startup-time-with-syntax-highlighting.md" >> "$REPORT"
105105
106106heading "Startup time with syntax with dependencies"
107107hyperfine \
108− "$(printf "%q" "$BAT") --no-config --color=always test-src/small-Markdown-file.md" \
108+ "$(printf "%q" "$BAT") --no-config --color=always startup-time-src/small-Markdown-file.md" \
109109 --command-name "bat … small-Markdown-file.md" \
110110 --warmup "$WARMUP_COUNT" \
111111 --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"
115115
116116heading "Plain-text speed"
117117hyperfine \
118− "$(printf "%q" "$BAT") --no-config --language=txt --style=plain test-src/numpy_test_multiarray.py" \
118+ "$(printf "%q" "$BAT") --no-config --language=txt --style=plain highlighting-speed-src/numpy_test_multiarray.py" \
119119 --command-name 'bat … --language=txt numpy_test_multiarray.py' \
120120 --warmup "$WARMUP_COUNT" \
121121 --export-markdown "$RESULT_DIR/plain-text-speed.md" \
@@ -123,7 +123,7 @@ hyperfine \
123123cat "$RESULT_DIR/plain-text-speed.md" >> "$REPORT"
124124
125125
126−for SRC in test-src/*; do
126+for SRC in highlighting-speed-src/*; do
127127 filename="$(basename "$SRC")"
128128
129129 heading "Syntax highlighting speed: \`$filename\`"
tests/benchmarks/test-src/small-CpuInfo-file.cpuinfo → tests/benchmarks/startup-time-src/small-CpuInfo-file.cpuinforenamed

The content is the same.

tests/benchmarks/test-src/small-Markdown-file.md → tests/benchmarks/startup-time-src/small-Markdown-file.mdrenamed

The content is the same.