Read a PDF load-test result without overstating capacity
18 June 2025
This local run scheduled 150 jobs against a small PDF-processing component. All 150 finished within the experiment’s cut-off. The raw timings separate planned arrival, queueing and completion. Use them to calculate a percentile, then identify which extra measurements a production service would need before quoting capacity.
When does a processing job actually finish?
The decision is whether a particular configuration can support an agreed workload, with enough evidence to set operating limits. Start with the business deadline: when must a submitted file become available to its authorised recipient? Then define which operations, document classes and arrival patterns the service must handle.
Ask the service owner to approve separate objectives for routine and demanding work. A two-page contract and a large scanned bundle need not share one latency target. Include a correctness condition, such as preservation of critical text or successful extraction of required fields, alongside the timing objective. Completing the wrong output quickly fails the task.
Where this guidance stops
This guide covers performance evaluation. It does not establish security isolation, OCR accuracy, accessibility or contractual availability. Those require their own evidence, although a performance test should detect whether its expected outputs change under load. No ArkePDF production service or customer deployment was tested here.
Build representative files and arrival patterns
File size, pages, complexity and concurrency
Create an inventory with document ID, version, byte size, pages, operation, expected result and permitted handling. Include the difficult features actually present: scanned pages, embedded fonts, tables, attachments or encryption. Use permissioned or synthetic files, and preserve their hashes so later runs use the same inputs.
The executed example uses three original synthetic PDFs:
| Class | Pages | Measured operation | Important exclusion |
|---|---|---|---|
| Gridded tables | 3 | Open and extract available text | No general table-structure validation |
| Invoice fixtures | 3 | Open and extract available text | No invoice approval or accounting posting |
| Drawn character strokes | 1 | Open and extract available text | No handwriting recognition; strokes have no expected text layer |
The load profile records exact sizes, hashes and reference-output hashes. These three files demonstrate measurement mechanics. They do not constitute a representative enterprise corpus.
Choose arrivals deliberately. Grafana’s k6 documentation on open and closed models explains that a closed model ties new iterations to prior completion, while an open model schedules arrivals independently. A closed model can therefore reduce offered demand as the target slows. Use the model that matches the question, and report the offered workload as well as completed work.
Recalculate a percentile from 150 local jobs
Inputs, assumptions and the expected result
On 31 October 2026, a local Python 3.12.14 experiment used pypdf 6.10.0 and four worker threads. The shared task container exposed nine logical CPUs; no dedicated hardware reservation was established. Each fixture received one warm-up read before measurement. Jobs then arrived at five per second for ten seconds, followed by ten per second for ten seconds, cycling through the three files.
For every job, the recorder captured its planned arrival, actual submission, worker start and completion. The worker reopened the PDF, extracted its available text and checked page count and text hash against the warm-up reference. Thus the output test measured consistency with that reference; it was not an independent judgement of document meaning.
| Arrival phase | Scheduled jobs | Completed jobs | Matching outputs | Observed p95 completion from planned arrival |
|---|---|---|---|---|
| 5 jobs/second for 10 seconds | 50 | 50 | 50 | 14.19 ms |
| 10 jobs/second for 10 seconds | 100 | 100 | 100 | 14.18 ms |
All 150 jobs reached a terminal result before the twenty-second measurement cutoff, with zero recorded errors. The table rounds timing values; raw results retain every event, and the measurement record states the percentile method and environment. The near-equal timings do not establish a meaningful improvement at the higher rate.
What the results establish
This was an actual local component run. It contained no HTTP gateway, authentication, database, remote storage, OCR or customer traffic. The executor’s queue was not a bounded admission controller. Neither phase deliberately reached saturation, and no cold-start, worker-loss or memory-exhaustion test occurred.
Consequently, the result supports only a narrow statement about these repeated files and this component run. It cannot justify a production capacity of ten jobs per second, an end-to-end service promise or a comparison between products. The reproduction script preserves the method; a new run produces new observations rather than reproducing identical timings.
Measure latency, throughput and failures
Percentiles, error rates and resource use
Keep each clock boundary explicit. Submission-to-acknowledgement measures admission responsiveness. Submission-to-usable-result measures the user’s wait. Worker-start-to-completion measures processing. Queue time explains part of the difference. A dashboard that shows only processing can hide a growing backlog.
For the supplied run, completion latency starts at the planned arrival, so it includes scheduler delay and queueing. The reported p95 uses the ordered value at position ceil(0.95 × N), counting from one. With fifty observations, that is the forty-eighth value. State the convention because different tools can interpolate percentiles differently.
Reconcile planned, submitted, accepted, completed, failed, cancelled and still-pending jobs. Preserve their IDs so retries do not become extra successful documents. Report failures separately from successful-job latency; dropping failed jobs from every summary can make an overloaded service appear faster.
Grafana documents dropped iterations as a separate metric: an arrival-rate test may lack free virtual users because of generator configuration or longer-running work. Investigate the load generator before attributing every missing arrival to the service. Monitor generator resources alongside worker CPU, memory, queue depth and storage behaviour in the real test.
Acceptance checklist for a PDF processing load test
Queue growth, exhaustion and restart behaviour
Agree thresholds before looking at results. Illustrative conditions might require all critical outputs to remain correct, routine work to meet a chosen percentile target and the backlog to drain within an agreed recovery period. The owner must supply the actual values; the local example does not establish them.
Use the following release questions:
- Did the generator deliver the agreed arrival pattern, with any missed or delayed work explained?
- Did each document class satisfy its timing and output criteria?
- Did queues stabilise under sustained demand and drain after the peak?
- Did resource limits produce controlled rejection or recoverable failure?
- Did an authorised restart preserve job identity and prevent duplicate delivery?
- Were unfinished jobs reconciled at the end of observation?
Grafana’s threshold guidance provides a way to express metric conditions as test pass/fail rules. Such rules still need correct measurements and meaningful business limits.
Run destructive or exhaustion scenarios only within a separately agreed test scope and stop condition. Preserve the last valid output and the failure record. A restart that clears a dashboard but loses pending work is not recovery. In this example, all these service-level checks remain unrun.
Set a supported operating envelope
Capacity assumptions and monitoring triggers
Write the decision as a bounded operating statement: configuration, permitted document mix, measured arrival profile, observation duration, timing definitions, correctness checks and unresolved exclusions. Attach the raw events and the configuration used. Distinguish an observed passing workload from the maximum sustainable workload, which requires further evidence.
Name monitoring triggers that invalidate the statement: larger files, a new OCR engine, changed worker resources, a different storage path or an increase in queue time. Retest the affected conditions after such a change. A previous result remains useful history but does not automatically describe the revised system.
The next useful step is an authorised service test with representative inputs and the complete delivery path. Reuse the recorder’s event boundaries, add admission and recipient-availability events, and have the business owner review actual outputs. Approve only the measured scope, with an owner and date for each unresolved limit.
Sources
- Grafana k6, Open and closed models: https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/open-vs-closed/. Accessed 31 October 2026; page displayed the v2.3.x documentation family.
- Grafana k6, Dropped iterations: https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/dropped-iterations/. Accessed 31 October 2026.
- Grafana k6, Thresholds: https://grafana.com/docs/k6/latest/using-k6/thresholds/. Accessed 31 October 2026. k6 itself was not executed in the local Python example.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex).
