Measure PDF processing latency at different file sizes

25 March 2026

A round stopwatch on a cord rests on a wooden surface.
Illustrative photograph. Cropped and resized. Photo by Anton Makarenko on Pexels. · Pexels License

Time the queue and the processing step separately. A smaller PDF can take longer to process, and a busy queue can make either file appear slow.

For the same operation, choose a large single-page raster image and a smaller document with many complex pages. Record the byte count, page count, content type, operation, settings and input version. A comparison that changes the operation from rendering to OCR as well as changing the file tells you little about the effect of size.

Time the same pair under two conditions

The following figures are invented to show how to read the measurements. They are not timings from ArkePDF or any other product.

JobInputQueue waitProcessingQueue entry to processing finish
Quiet queue, A15 MB, one raster page1 s4 s5 s
Quiet queue, B1.5 MB, 50 complex pages1 s12 s13 s
Busy queue, ASame file A20 s4 s24 s
Busy queue, BSame file B20 s12 s32 s

In both pairs, B uses eight more seconds of processing even though it is smaller. In the second pair, each job takes 19 seconds longer than its counterpart because its queue wait rose from one to 20 seconds. The example does not establish why B needs more processing. Page count and content complexity changed alongside byte size.

Record boundaries a reviewer can reproduce

Capture queue entry, worker start and worker finish using a consistent clock. Queue wait runs from entry to worker start. Processing runs from worker start to finish. If the user also waits for upload, output transfer or download, time those stages separately before calling the figure end-to-end latency.

Retain failed and timed-out attempts with their outcomes. Otherwise the slowest files may disappear from the result. ArkePDF’s load profile illustrates how to identify fixture files and their characteristics. Use your own measured workload to set a timeout. Load profile

Test the size hypothesis directly

Choose another pair with similar page counts, layout and image dimensions but different encoded file sizes. Keep the worker configuration and operation fixed, repeat the runs and vary their order. Report how many runs contributed to each comparison. If the results still track the queue or page complexity more closely than bytes, record that limitation before setting a file-size-based timeout.

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).