AnyEvent-HTTPBenchmark
view release on metacpan or search on metacpan
benchmark.pl view on Meta::CPAN
#start measuring time
my $start_time = AnyEvent->time;
print 'Started at ' . format_time($start_time) . "\n";
#starting requests
for ( 1 .. $concurency ) {
add_request( $_, $url );
}
$cv->recv; # begin receiving message and make callbacks magic ;)
end_bench(); # call the end
#subs
sub parse_command_line {
if (not defined @ARGV)
{
print <<HEREDOC;
AnyEvent::HTTPBenchmark http://github.com/shafiev/AnyEvent-HTTPBenchmark
( run in 0.387 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )