What is the best way to test a site with Perl? How can I emulate a lot of connections to check how my script works on heavy load? Maybe there is a nice module on CPAN?
I am not interested in testing for dead links or 404 errors, only in work speed.
What is the best way to test a site with Perl? How can I emulate a lot of connections to check how my script works on heavy load? Maybe there is a nice module on CPAN?
I am not interested in testing for dead links or 404 errors, only in work speed.
I have written these before so I can help you but it seems pretty straight forward for example:
use LWP::Simple;
my @urls ;
while($in=<>) {
push @urls,$in ;
$start=time();
for (i=0;i++; i< 99999999) {
use LWP::Simple;
my $content = get $url;
die if (/error/ ~= $content) ;
## Decide if you want to look at anything else
}
$stop=time() ;
## Write a report