on master help sign in
run-benchmarks.sh: Add third 'Startup time' variant
747b154Martin Nordholts
tests/benchmarks/run-benchmarks.sh+12−2
@@ -95,14 +95,24 @@ cat "$RESULT_DIR/startup-time.md" >> "$REPORT"
95
95
96heading "Startup time with syntax highlighting"
96heading "Startup time with syntax highlighting"
97hyperfine \
97hyperfine \
98− "$(printf "%q" "$BAT") --no-config --color=always test-src/small-Markdown-file.md" \
98+ "$(printf "%q" "$BAT") --no-config --color=always test-src/small-CpuInfo-file.cpuinfo" \
99− --command-name "bat … small-Markdown-file.md" \
99+ --command-name "bat … small-CpuInfo-file.cpuinfo" \
100 --warmup "$WARMUP_COUNT" \
100 --warmup "$WARMUP_COUNT" \
101 --export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
101 --export-markdown "$RESULT_DIR/startup-time-with-syntax-highlighting.md" \
102 --export-json "$RESULT_DIR/startup-time-with-syntax-highlighting.json"
102 --export-json "$RESULT_DIR/startup-time-with-syntax-highlighting.json"
103cat "$RESULT_DIR/startup-time-with-syntax-highlighting.md" >> "$REPORT"
103cat "$RESULT_DIR/startup-time-with-syntax-highlighting.md" >> "$REPORT"
104
104
105
105
106+heading "Startup time with syntax with dependencies"
107+hyperfine \
108+ "$(printf "%q" "$BAT") --no-config --color=always test-src/small-Markdown-file.md" \
109+ --command-name "bat … small-Markdown-file.md" \
110+ --warmup "$WARMUP_COUNT" \
111+ --export-markdown "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" \
112+ --export-json "$RESULT_DIR/startup-time-with-syntax-with-dependencies.json"
113+cat "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" >> "$REPORT"
114+
115+
106heading "Plain-text speed"
116heading "Plain-text speed"
107hyperfine \
117hyperfine \
108 "$(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 test-src/numpy_test_multiarray.py" \
tests/benchmarks/test-src/small-CpuInfo-file.cpuinfonew file+1
@@ -0,0 +1 @@
1+OneColor : AnotherColor