AnyEvent-HTTPBenchmark
view release on metacpan or search on metacpan
benchmark.pl view on Meta::CPAN
#!/usr/bin/env perl
use common::sense; #new features in perl
use Getopt::Long; # to command line parsing
use AnyEvent::HTTP; # use for http requests and etc. methods
use POSIX; # POSIX related stuff
use Data::Dumper; # to debug data
use AnyEvent::CacheDNS ':register'; # dns requests caching
my $DEBUG = 0; #Debug mode. Default is false (0)
my $verbose = 0; #to view the each connection result
my $timeout = 60;
my $count = 30000; #default number of requests
my $concurency = 20; # default number of parralle requests
my $done = 0; #number of done requests
my $url; # the url to test
my $method = 'GET'; #http method
my $proxy; # proxy server
( run in 0.245 second using v1.01-cache-2.11-cpan-4d50c553e7e )