]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
ab: More accurate stats for time limited (-t) runs.
authorYann Ylavic <ylavic@apache.org>
Tue, 20 Jun 2023 15:53:11 +0000 (15:53 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 20 Jun 2023 15:53:11 +0000 (15:53 +0000)
commit5d22e551c5f45fa500b8e109373c03a4786157c3
tree7cb2188d2ca61f7b04fde5bc2709427e1666030c
parent1768d598917d4e9d82a42e267d0eea6180ec20e8
ab: More accurate stats for time limited (-t) runs.

When ab runs for a limited time, the number of requests configured (or the
default MAX_REQUESTS if not configured) may be lower than than the number
of requests actually/finally achieved, in which case the stats per request
is a window of the actual stats since we can't store all the results.

Rather than taking the last N requests of the run for the stats, do the mean
of all the requests reusing the same window slot, and print that.

If no number of requests is configured for a time limited run, it will stop
only at the end of the time (i.e. MAX_REQUESTS is ignored for the end of
test condition). So MAX_REQUESTS is renamed to TIMED_REQUESTS while at it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910517 13f79535-47bb-0310-9956-ffa450edef68
support/ab.c