Percentile Statistics and Warm-up Control
Summarises iteration samples into p50, p95, min, max, mean and standard deviation, with configurable warm-up iterations discarded before measurement. Percentiles rather than averages are the headline numbers because tail latency is what users feel.
Planned. This page shows the specification from issue #208. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Standard scenario, sort operation, 3 warm-up and 20 measured iterations, summary card empty.
Expected behavior
After a run, the summary card shows p50 and p95 prominently with sample count. Warm-up samples appear greyed out when shown and never contribute to statistics. Changing the percentile method recomputes the summary without rerunning.
Planned API surface
warmupIterationsmeasuredIterationssummarize(samples)SampleSummarypercentileMethodAcceptance criteria
- Warm-up samples are never included in any summary statistic (pending)
- Percentile computation matches a documented reference algorithm on fixed test vectors (pending)
- Summary displays sample count next to every percentile (pending)
- p95 is flagged 'low confidence' when measured iterations are fewer than 20 (pending)
- Recomputing with a different percentile method requires no new measurement (pending)