Calculate percentile latency for document jobs
28 September 2026
The ten completed jobs took 1, 1, 2, 2, 3, 3, 4, 5, 8 and 20 seconds, in ascending order. Under the nearest-rank convention, p90 is the ninth observation, 8 seconds. The slowest job still took 20 seconds. One of the ten jobs exceeded the reported p90.
Show the method, rank and unit together
Nearest rank uses the value at position ceil(p × N), counting from one. Here p is 0.90 and N is 10. The product is 9, so the ceiling is 9. The eighth value is 5 seconds, the ninth is 8 and the tenth is 20. There is no interpolation between the ninth and tenth values under this convention. Another software tool may interpolate percentiles, so record the method if readers need to reproduce the number.
| Statistic for this fictional set | Rank under this convention | Duration |
|---|---|---|
| p50 | 5 | 3 seconds |
| p90 | 9 | 8 seconds |
| Maximum | 10 | 20 seconds |
A percentile is not an average of the slowest ten per cent. Nor does the p90 ensure that future jobs finish within eight seconds. With only ten observations the ninth value can change substantially when one more slow job enters the sample. Report the maximum and inspect the slowest case without allowing it to stand in for a production distribution.
Define what the timer includes
For real PDF jobs, choose the interval to measure. Submission to completion, scheduled arrival to committed output and time spent in the engine are different measures. Report queueing, failures and timeouts separately as appropriate. A percentile calculated only from successful jobs describes the successful subset. Excluding requests that never finish can hide the worst experience.
The separate local processing results declare both their nearest-rank convention and their timer boundary. They are a different experiment with different units and observations. Use a representative workload over a stated period, retain the individual durations and verify acceptable outputs before using real latency measurements for a service decision.
Part of the Read a PDF load-test result without overstating capacity guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
