diff --git a/tests/benchmarks/run-benchmarks.sh b/tests/benchmarks/run-benchmarks.sh index f7646b45..d27af3db 100755 --- a/tests/benchmarks/run-benchmarks.sh +++ b/tests/benchmarks/run-benchmarks.sh @@ -95,14 +95,24 @@ cat "$RESULT_DIR/startup-time.md" >> "$REPORT" heading "Startup time with syntax highlighting" hyperfine \ - "$(printf "%q" "$BAT") --no-config --color=always test-src/small-Markdown-file.md" \ - --command-name "bat … small-Markdown-file.md" \ + "$(printf "%q" "$BAT") --no-config --color=always test-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" \ --export-json "$RESULT_DIR/startup-time-with-syntax-highlighting.json" 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" \ + --command-name "bat … small-Markdown-file.md" \ + --warmup "$WARMUP_COUNT" \ + --export-markdown "$RESULT_DIR/startup-time-with-syntax-with-dependencies.md" \ + --export-json "$RESULT_DIR/startup-time-with-syntax-with-dependencies.json" +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" \ diff --git a/tests/benchmarks/test-src/small-CpuInfo-file.cpuinfo b/tests/benchmarks/test-src/small-CpuInfo-file.cpuinfo new file mode 100644 index 00000000..bb3b4533 --- /dev/null +++ b/tests/benchmarks/test-src/small-CpuInfo-file.cpuinfo @@ -0,0 +1 @@ +OneColor : AnotherColor