Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 5b283c8

Browse files
committed
Add benchmark for trim
1 parent e3e9412 commit 5b283c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bench/trim.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DICT=/usr/share/dict/american-english
2+
3+
bench "sed -re 's/^\s+//' <$DICT >/dev/null" "trim -l <$DICT >/dev/null"
4+
echo "---"
5+
bench "sed -re 's/\s+$//' <$DICT >/dev/null" "trim -r <$DICT >/dev/null"

0 commit comments

Comments
 (0)