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.It was an Oracle Linux 6 (64 bits) with GNU Awk 3.1.7 and Perl 5.10.1.
http://alquerubim.blogspot.com.br/2016/09/a-linha-mais-compr...
Still, awk was simpler.