Skip to content

Commit 583e8c2

Browse files
committed
awk is faster and more broadly installed than perl, support neovim and vim packages
1 parent 7d597ee commit 583e8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bench

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -e
33
s=startuptime.txt
44
vim --startuptime $s -o -c qa "$@"
5-
perl -lane'$sum += $F[1] if m!/\.vim/after/syntax/css\.vim$!; END {print $sum}' $s
5+
awk '/\/after\/syntax\/css\.vim$/ {sum += $2} END {print sum}' $s
66
rm $s

0 commit comments

Comments
 (0)