The short answer: at 10,000 counted rows, no PDF took longer than 1.54 seconds from click to downloadable. At 100,000 rows the spread runs from 2.05 seconds (Device summary) to 10.19 seconds (Raw records). Almost all of the wait is the server building the document — the longest anyone waited in the queue was 15 milliseconds.
Slowest group measured
11.23 s
Variance summary · job C (100,000 rows)
Fastest group measured
521 ms
Exception summary · job A (10,000 rows)
Longest queue wait
15 ms
worst case across all 84 generations
Files verified
63 of 63
every PDF checked: header, trailer, bytes, SHA-256
Every wait below is a median of 3 measured samples (groups marked "reduced" have one, because their warmup exceeded four minutes); maxima are shown where they matter. That is far too few for a trustworthy p95 or p99, so none is claimed, and nothing here is a concurrency capacity.
1. How long from clicking the report to being able to download it
The wait splits into five clocks, measured separately rather than estimated.
10,000 counted rows, 50% matched against the catalogue: request to first observed downloadable, median. The slowest template is highlighted.
100,000 counted rows, 50% matched against the catalogue: request to first observed downloadable, median. The slowest template is highlighted.
100,000 counted rows, 100% matched against the catalogue: request to first observed downloadable, median. The slowest template is highlighted.
- Admitted — the request returning a report id: 9.74–14.59 milliseconds.
- Queued — waiting for the single background report worker. The worst wait across all 84 generations was 15.21 milliseconds.
- Executed — loading the rows, matching them against 3,275,088 products, laying out the PDF, uploading it and publishing the report. This is 33–99% of the wait from request to downloadable.
- Observed downloadable — the driver polls every 500 milliseconds until it sees the report completed.
- Downloaded — timed separately, pulling the finished PDF back. Never folded into the waits above.
Measured through a Release build of the API running natively on macOS, against the development PostgreSQL (18.3) and Azurite containers sharing a 4 vCPU / 5.6 GiB Podman VM. The report queue runs one worker with a per-process serial gate by design, so these are single-task times, not throughput.
2. Which template costs what
At 100,000 rows the slowest template takes 5.0× the fastest — the template matters more than anything else we varied.
| Template | What it shows | 10,000 rows, 50% matched | 100,000 rows, 50% | 100,000 rows, 100% | Output at 100,000 rows |
|---|---|---|---|---|---|
| Raw records inventory-raw-data | every counted row, one line each | 1.54 seconds | 10.19 seconds | 10.67 seconds | 24123.66 KiB |
| Location summary location-summary | progress and counts per location | 532 milliseconds | 2.06 seconds | 2.04 seconds | 61.73 KiB |
| Device summary device-summary | counts per scanning device | 529 milliseconds | 2.05 seconds | 2.04 seconds | 48.65 KiB |
| Inventory summary inventory-summary | counted rolled up by product | 1.04 seconds | 8.15 seconds | 9.17 seconds | 17829.25 KiB |
| Variance summary variance-summary | counted against book stock | 1.03 seconds | 10.16 seconds | 11.23 seconds | 21337.77 KiB |
| Change audit change-audit | every recorded correction | 533 milliseconds | 2.56 seconds | 3.06 seconds | 2019.04 KiB |
| Exception summary exception-summary | unmatched and problem rows | 521 milliseconds | 5.09 seconds | 2.56 seconds | 9067.46 KiB |
Matching more rows costs time, but not dramatically. Going from 50% to 100% matched at 100,000 rows changed execution time by 0.4× to 1.3× depending on the template. The catalogue lookup happens once per distinct submitted code, in bulk, so doubling the matched rows does not double the wait.
3. What happens when the job grows ten times
From 10,000 to 100,000 counted rows at the same 50% match rate.
Execution time growth factor, ten times the rows. Bars are scaled against the worst template.
Below 10× means the fixed costs of creating the report and starting the document were spread more thinly at scale; above it means per-row work grew faster than the input. Templates that must load and match every row — the summaries and the audit — grow with the input; rendering-only costs dominate the raw records.
4. What the app and the database did while it worked
The cost of producing these PDFs, as measured rather than estimated.
| Measure | Measured | What it covers |
|---|---|---|
| API sampled RSS peak | 4001.94 MiB | reached during a generation itself; sampling spans warmups, polling and downloads, so this is neither managed live memory nor a container limit |
| Driver RSS peak | 403.63 MiB | the Node driver on the same host |
| Allocated during measurement | 49.17 GiB | System.Runtime counters cover the whole window and cannot be attributed to one report |
| GC pause, total | 4.84 seconds | sampled GC committed peak 2431.86 MiB |
| API process CPU | 331.05 seconds | same window |
| PostgreSQL container | not collected | podman stats peak during measurement; memory peak not collected |
| PostgreSQL temporary files | 0 bytes | no query spilled to a temp file at these sizes |
Do not read the memory figures as a pass mark. Later samples share one process, its retained heap and a warm database cache, so the RSS peak includes memory left behind by earlier reports and is not a managed live size. This run makes no claim about a memory target being met, and none of these numbers is evidence of a leak.
5. Every group, one row each
All 21 measured groups behind everything above. Nothing is sampled out.
| Job | Template | Samples | Admitted ms | Queued ms | Executed ms, median / max | Request to downloadable ms, median / max | Downloaded ms | Output KiB | Input rows per second | API RSS peak MiB |
|---|---|---|---|---|---|---|---|---|---|---|
| A 10,000 rows · 50% | Raw records inventory-raw-data | 3 | 14.49 | 9.41 | 1078.37 / 1287.63 | 1544.76 / 1548.19 | 18.40 | 2452.93 KiB | 9,273 | 746.91 |
| A 10,000 rows · 50% | Location summary location-summary | 3 | 12.99 | 8.84 | 189.78 / 215.95 | 531.84 / 533.40 | 13.44 | 61.21 KiB | 52,692 | 818.55 |
| A 10,000 rows · 50% | Device summary device-summary | 3 | 13.27 | 9.04 | 173.15 / 174.40 | 529.23 / 533.76 | 10.76 | 48.42 KiB | 57,755 | 983.72 |
| A 10,000 rows · 50% | Inventory summary inventory-summary | 3 | 12.22 | 8.91 | 787.81 / 1064.43 | 1039.38 / 1544.18 | 21.53 | 1895.71 KiB | 12,693 | 1108.22 |
| A 10,000 rows · 50% | Variance summary variance-summary | 3 | 9.98 | 6.65 | 984.44 / 987.74 | 1029.23 / 1029.75 | 13.85 | 2244.98 KiB | 10,158 | 1183.03 |
| A 10,000 rows · 50% | Change audit change-audit | 3 | 13.42 | 8.55 | 262.95 / 265.81 | 532.73 / 533.31 | 15.82 | 248.27 KiB | 38,030 | 1183.33 |
| A 10,000 rows · 50% | Exception summary exception-summary | 3 | 9.81 | 5.67 | 488.49 / 489.09 | 521.12 / 521.98 | 7.73 | 776.14 KiB | 20,471 | 1178.55 |
| B 100,000 rows · 50% | Raw records inventory-raw-data | 3 | 13.58 | 8.69 | 9768.17 / 10113.90 | 10190.40 / 10290.57 | 97.31 | 24123.66 KiB | 10,237 | 3169.67 |
| B 100,000 rows · 50% | Location summary location-summary | 3 | 14.59 | 10.32 | 1711.45 / 1859.90 | 2058.79 / 2076.61 | 12.68 | 61.73 KiB | 58,430 | 3327.27 |
| B 100,000 rows · 50% | Device summary device-summary | 3 | 12.11 | 8.36 | 1559.93 / 1581.87 | 2050.00 / 2050.19 | 14.34 | 48.65 KiB | 64,105 | 3392.11 |
| B 100,000 rows · 50% | Inventory summary inventory-summary | 3 | 11.29 | 7.03 | 7803.89 / 8026.05 | 8150.01 / 8251.37 | 78.87 | 17829.25 KiB | 12,814 | 3623.42 |
| B 100,000 rows · 50% | Variance summary variance-summary | 3 | 11.41 | 8.63 | 9663.76 / 9769.71 | 10164.72 / 10169.79 | 80.78 | 21337.77 KiB | 10,348 | 3717.66 |
| B 100,000 rows · 50% | Change audit change-audit | 3 | 13.06 | 8.98 | 2356.58 / 2358.85 | 2564.73 / 2576.76 | 18.23 | 2019.04 KiB | 42,434 | 3687.02 |
| B 100,000 rows · 50% | Exception summary exception-summary | 3 | 9.74 | 6.44 | 4970.37 / 5122.00 | 5091.67 / 5231.24 | 37.26 | 9067.46 KiB | 20,119 | 3642.95 |
| C 100,000 rows · 100% | Raw records inventory-raw-data | 3 | 9.76 | 6.37 | 10297.55 / 10393.71 | 10673.37 / 10681.14 | 102.34 | 26825.98 KiB | 9,711 | 3799.59 |
| C 100,000 rows · 100% | Location summary location-summary | 3 | 13.46 | 8.27 | 2020.58 / 2079.04 | 2044.45 / 2592.13 | 5.41 | 61.16 KiB | 49,491 | 3731.44 |
| C 100,000 rows · 100% | Device summary device-summary | 3 | 10.54 | 6.99 | 2022.99 / 2131.75 | 2039.15 / 2162.36 | 5.94 | 48.06 KiB | 49,432 | 3738.14 |
| C 100,000 rows · 100% | Inventory summary inventory-summary | 3 | 10.81 | 7.03 | 9036.46 / 9148.21 | 9171.18 / 9687.08 | 84.18 | 21798.44 KiB | 11,066 | 3896.70 |
| C 100,000 rows · 100% | Variance summary variance-summary | 3 | 10.41 | 6.33 | 11162.95 / 11274.90 | 11228.53 / 11675.46 | 83.29 | 27201.67 KiB | 8,958 | 4001.94 |
| C 100,000 rows · 100% | Change audit change-audit | 3 | 11.85 | 8.21 | 2877.11 / 2933.73 | 3059.50 / 3062.01 | 18.11 | 2045.35 KiB | 34,757 | 3815.28 |
| C 100,000 rows · 100% | Exception summary exception-summary | 3 | 12.22 | 8.50 | 2060.21 / 2136.45 | 2556.61 / 2574.05 | 11.28 | 47.54 KiB | 48,539 | 3776.48 |
"Request to downloadable" includes the 500-millisecond polling interval; "downloaded" is timed separately afterwards. Every output PDF passed header, trailer, byte-count and SHA-256 verification.
6. What this did not test
Being straight about the edges of this test, because they decide what we should not promise yet.
- Concurrency. Reports were generated one at a time — the queue and the per-process gate serialise them by design. Nothing here answers "what happens when five people ask for PDFs at once", beyond the queue absorbing them.
- Bigger jobs. 100,000 counted rows was the ceiling. Larger jobs, and jobs with hundreds of thousands of book rows, were not measured.
- Other PDF kinds. The aggregate console PDFs (capped at 1,000 rows, synchronous) and custom templates were not measured; structured exports were covered by their own earlier report.
- Languages. Everything was generated in English. Non-Latin fonts and the other three report languages were not exercised.
- Our production cloud setup. API and driver ran natively on a Mac; PostgreSQL and Azurite shared a 4 vCPU / 5722 MiB Podman VM with the development containers. That is a local baseline, not a cloud-sized comparison.
- No old-version comparison. One point in time, at
fc368b35. No speed-up or regression is claimed against anything.
7. How to trust this
- Every PDF was verified. Each of the 63 measured files was checked for the PDF header and end marker, its byte count against the server's stored resource record, and its SHA-256 against the value the server published. The first measurement of every group was downloaded twice and the hashes compared.
- The input was reconciled. After seeding, process, QOH, location and alteration counts were checked against the plan, and the matched share was verified through the same normalisation the report host uses.
- It ran through the real path. A real organisation admin in the target organisation, real jobs taken through Draft → Ready → Active (a licence was consumed for each), the real JobReport API, the shared Hangfire reports queue, a blob upload and the published-report update. No platform identity, no permission bypass, no calling the renderer directly.
- Timing came from the system's own records. Queue and execution times are read from timestamps the server persisted on each report, not estimated by the driver; admission, observation and download are timed separately.
- The sample size is stated, not hidden. 3 measured samples per group (one where marked reduced), warmups excluded, medians and maxima only, and an explicit statement that a trustworthy p95 does not exist at this sample size.
Run 728bcabe · version 20261014-pdf-reports · code under test fc368b35 (with uncommitted changes) · measured 2026-10-13 · 6.30 minutes end to end · catalogue of 3,275,088 products already present in the test organisation. Every figure on this page was generated by tests/performance/20261014-pdf-reports/page.mjs from the measured result files in tests/performance/20261014-pdf-reports/reports; none is typed in by hand.