Thread Net::Ping - tcp oder icmp?: Was ist besser?
(8 answers)
Opened by format_c at 2007-01-16 16:38
Hier das Ergebnis:
Code: (dl
)
1 format_c@boston ~ $ su -c "perl test.pl 192.168.0.6" Und hier das Skript: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 use strict; use Net::Ping; use Benchmark; my $tcp = Net::Ping->new("tcp"); my $icmp = Net::Ping->new("icmp"); timethese(1_000_000, { "TCP: " => sub { $tcp->ping($ARGV[0]); } , "ICMP: " => sub { $icmp->ping($ARGV[0]); } } ); Gruß Alex\n\n <!--EDIT|format_c|1168979486--> |