5 ms·
They have a comparison of tab, Perl, and Python: https://bitbucket.org/tkatchev/tab#markdown-header-comparison https://bitbucket.org/tkatchev/tab#markdown-heade
by wspeirs 12y ago
They have a comparison of tab, Perl, and Python: https://bitbucket.org/tkatchev/tab#markdown-header-comparison https://bitbucket.org/tkatchev/tab#markdown-header-compariso...
TL;DR
Perl: 4.1s
Python: 3.1s
shell (cut, sort, unique): 2.7s
awk: 2.1s
tab: 0.9 s
syntax
./tab -i req.log '{cut(cut(@," ",2),"?",0) -> sum(1)}'
vs
a few lines of Perl or Python...