The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

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.

SEE ALSO

plackbench