NAME
App::plackbench::Stats - Stores request times and generates stats
CLASS METHODS
new
Returns a new instance of the class. Takes zero or more times for the initial list.
METHODS
insert($time)
Inserts a number into the collection. The number will be inserted in order.
count
Returns the number of items in the collection.
elapsed
Returns the total time took waiting for the requests to complete.
rate
Returns the rate at which the requests were made (number of requests per second)
mean
Returns the mean. sum / count
median
Returns the median.
min
Returns the smallest number in the collection.
max
Returns the largest number in the collection.
standard_deviation
Returns the standard deviation. http://en.wikipedia.org/wiki/Standard_deviation.
percentile($n)
Returns the number at percentile $n
.