ApacheBench

 view release on metacpan or  search on metacpan

lib/HTTPD/Bench/ApacheBench.pm  view on Meta::CPAN

Total bytes received from all responses in all runs.

=item $b->total_requests

Total number of HTTP requests which were configured in this object.

=item $b->total_requests_sent

Total number of HTTP requests which were successfully sent to the server(s).

=item $b->total_responses_received

Total number of complete, successful HTTP responses received.

=item $b->total_responses_failed

Total number of HTTP responses which were not received successfully.
Check the warning messages for possible explanations of why they failed.

=item $b->warnings

Various warning messages.

=back

=head2 Run regression methods

=over 4

=item $run->sent_requests( $url_no )

Returns the number of HTTP requests which were B<successfully> sent to the
server 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<successful> HTTP requests sent
for each url in this run.

=item $run->good_responses( $url_no )

Returns the number of complete, B<successful> HTTP responses received 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<successful> HTTP responses
received for each HTTP request in this run.

=item $run->failed_responses( $url_no )

Returns the number of HTTP responses which failed or were otherwise
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

The minimum connect time of all requests in the sequence.

=item $i->max_connect_time

The maximum connect time of all requests in the sequence.

=item $i->avg_connect_time

The average connect time of all requests in the sequence.

=item $i->sum_connect_time

The total connect time of all requests in the sequence (equal to the
summation of all elements of $i->connect_times).

=item $i->request_times( $url_no )

Returns the time taken to send a request to the server, 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 the times taken to send a request to the server,
in milliseconds, for each HTTP request in the sequence.

=item $i->min_request_time

The minimum request time of all requests in the sequence.

=item $i->max_request_time

The maximum request time of all requests in the sequence.

=item $i->avg_request_time

The average request time of all requests in the sequence.

=item $i->sum_request_time

The total request time of all requests in the sequence (equal to the
summation of all elements of $i->request_times).

=item $i->response_times( $url_no )

Returns the time taken to receive a response from the server, 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 the times taken to receive a response from the
server, in milliseconds, for each HTTP request in the sequence.



( run in 0.666 second using v1.01-cache-2.11-cpan-96521ef73a4 )