News for hackers. Stuff that matters.
Re:Awk vs. Perl (2009) by kazinator on Tuesday June 27, 2017 @05:18PM (#14649546)
Your benchmark doesn't specify which implementation of Awk you're testing, and which version of it.

Your code is verbose: length($0) shortens to just length:

  awk 'length > max { max = length } END { print max }'
The Perl seems to have an off-by-one error.
Re:Awk vs. Perl (2009) by forinti on Wednesday June 28, 2017 @09:23AM (#14653827)
It was an Oracle Linux 6 (64 bits) with GNU Awk 3.1.7 and Perl 5.10.1.
Re:Awk vs. Perl (2009) by forinti on Tuesday June 27, 2017 @07:48PM (#14650627)
The Perl version counted the newline char, hence the difference.