The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use Benchmark qw(:all);
use Net::DNS::Lite qw();
use Socket qw();

my $fqdn = 'google.com.';

cmpthese(-1, {
    'Socket' => sub {
        Socket::inet_aton($fqdn);
    },
    'Net::DNS::Lite' => sub {
        Net::DNS::Lite::inet_aton($fqdn);
    },
});