]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: timings - added quantiles
authorPhil Carmody <phil@dovecot.fi>
Mon, 21 Sep 2015 16:52:32 +0000 (19:52 +0300)
committerPhil Carmody <phil@dovecot.fi>
Mon, 21 Sep 2015 16:52:32 +0000 (19:52 +0300)
commitec8eacaa2c8ca78cbf8ee8c83ab6ec521b67f354
tree04e016325e00c3a0a75569ff028a3f6e3252bf42
parent2c886f02dd195e44ca67532fa34f88b89a4ba603
lib: timings - added quantiles
Just sub-sample the stream. On the assumption that the samples come from
one distribution, then any randomly selected subset will share the same
distribution. Therefore the quantiles should be at approximately the same
value.

However, that's a big assumption, as there will almost certainly be time
dependency, and periodicity (24hrs, 7 days).

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/test-timing.c
src/lib/timing.c
src/lib/timing.h