ApacheBench
view release on metacpan or search on metacpan
* implement per-run execute() using system threads, then global execute() can
just fire off as many threads as there are runs
- this would allow (re-)sending of individual runs, iterations within a run
- complications with concurrent request slots: does each thread keep
its own set of file descriptors, or (sh)(c)ould threads share them?
* need a way to simulate real-world problems: for example
- slow dialup modem connections
o e.g. add an automatic delay after each request in a run
o also support a pre-configured delay inside a run
- user-presses-stop, aka broken socket
* bring up-to-date with current Apache 2.0 distribution of ab.c
- including SSL support
* perl subroutine hooks between requests in a sequence, with access
lib/HTTPD/Bench/ApacheBench.pm view on Meta::CPAN
B<unsuccessful>, for the URL specified by $url_no.
If $url_no is not given, returns a reference to an array the same length as
$run->urls() which contains the number of B<unsuccessful> HTTP responses
received for each HTTP request in this run.
=item $i = $run->iteration( $iter_no )
Return a regression object specific to iteration $iter_no of this run.
If $iter_no is not given, it assumes 0, or the first iteration of the run.
The number of iterations for the run can be retrieved with $run->repeat().
=item $i->connect_times( $url_no )
Returns the connection time, in milliseconds, for the URL specified by $url_no.
If $url_no is not given, returns a reference to an array the same length as
$run->urls() which contains connection times, in milliseconds, for each HTTP
request in this iteration of the sequence.
=item $i->min_connect_time
( run in 0.859 second using v1.01-cache-2.11-cpan-96521ef73a4 )