Subject: | Segmentation fault |
perl test.pl
zsh: segmentation fault perl test.pl
Darwin Cornelius.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:56:15 PDT 2011;
root:xnu-1699.24.8~1/RELEASE_I386 i386
MacOS Lion
-----
here is my test.pl
use HTTPD::Bench::ApacheBench;
my $b = HTTPD::Bench::ApacheBench->new;
# global configuration
$b->concurrency(5);
# $b->priority("run_priority");
# add HTTP request sequences (aka: runs)
my $run1 = HTTPD::Bench::ApacheBench::Run->new({
urls => ['http://phifty.local/bs'] ,
repeat => 10,
});
$b->add_run($run1);
my $ro = $b->execute;
use Data::Dumper;
my $d = Data::Dumper->new([$ro]);
print $d->Dumpxs;
print ((1000*$b->total_requests/$b->total_time)." req/sec\n");