1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 03:12:25 +01:00

Add new --style called header-filesize and display it by default (#1988)

Also rename `header` to `header-filename`.

Related to #1701
This commit is contained in:
Mahdi Dibaiee
2022-02-07 19:48:57 +00:00
committed by GitHub
parent f3f8194932
commit 312c8ef01f
111 changed files with 302 additions and 42 deletions

View File

@@ -136,3 +136,13 @@ for wrap in character never; do
cat "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" >> "$REPORT"
done
done
heading "Many small files speed (overhead of metadata)"
hyperfine \
"$(printf "%q" "$BAT") --no-config --language=txt --style=plain many-small-files/*.txt" \
--command-name 'bat … --language=txt *.txt' \
--warmup "$WARMUP_COUNT" \
--export-markdown "$RESULT_DIR/many-small-files-speed.md" \
--export-json "$RESULT_DIR/many-small-files-speed.json"
cat "$RESULT_DIR/many-small-files-speed.md" >> "$REPORT"