Measure cold-start effects in a PDF service
20 August 2026
Run the same PDF operation on a newly created worker and on an already initialised worker. Keep the two sets of results separate. A first request can wait for capacity, trigger font or library loading and perform the document operation. Measure those stages individually to identify the delay.
Put five timestamps on each run
Record request arrival, worker start, worker ready, job pickup and completion using comparable clocks. Define “ready” precisely. Some libraries initialise only on first use, so a worker that has announced readiness may still spend part of its first job loading fonts.
In a purely illustrative trace, a request arrives at 0 ms, a worker starts at 20 ms, becomes ready at 100 ms, picks up the job at 105 ms and finishes at 118 ms. Initialisation took 80 ms and active job processing took 13 ms. The reader waited 118 ms overall. The 105 ms from arrival to pickup already includes the 80 ms of initialisation. Adding the two would count the same interval twice.
For a warm comparison, record arrival, pickup and finish again on the same worker. Report which startup stages were already complete and which ran during the job. Leave unmeasured intervals marked as unknown.
Report two distributions, not one favourable run
Pin the input bytes, operation, fonts, library build and resource limits. Capture repeated first jobs on genuinely fresh workers and repeated jobs on warmed workers. Define whether host caches and local file caches are retained. Report sample counts, observed spread and failures for each group, alongside queue delay and end-to-end waiting time.
The published load profile warmed its synthetic files before recording and explicitly excludes a cold-start experiment. Its figures cannot answer this question. Use your separate cold and warm measurements, plus the frequency with which new workers serve real jobs, to decide whether keeping capacity warm would improve the user’s experience enough to justify its cost.
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).
