File: simple.pl

package info (click to toggle)
libnet-dns-lite-perl 0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 236 kB
  • sloc: perl: 1,821; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
    },
});