← All QuantalCount performance reports

Measured on our own hardware

How long does a stocktake PDF take?

We generated all seven standard PDF reports for jobs of 10,000 and 100,000 counted rows against a live catalogue of 3,275,088 products — 84 generations in all, through the real report queue — and verified every downloaded file. Here is what actually happened.

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.

Raw records
1.54 seconds
Inventory summary
1.04 seconds
Variance summary
1.03 seconds
Change audit
533 milliseconds
Location summary
532 milliseconds
Device summary
529 milliseconds
Exception summary
521 milliseconds

100,000 counted rows, 50% matched against the catalogue: request to first observed downloadable, median. The slowest template is highlighted.

Raw records
10.19 seconds
Variance summary
10.16 seconds
Inventory summary
8.15 seconds
Exception summary
5.09 seconds
Change audit
2.56 seconds
Location summary
2.06 seconds
Device summary
2.05 seconds

100,000 counted rows, 100% matched against the catalogue: request to first observed downloadable, median. The slowest template is highlighted.

Variance summary
11.23 seconds
Raw records
10.67 seconds
Inventory summary
9.17 seconds
Change audit
3.06 seconds
Exception summary
2.56 seconds
Location summary
2.04 seconds
Device summary
2.04 seconds

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.

TemplateWhat it shows10,000 rows, 50% matched100,000 rows, 50%100,000 rows, 100%Output at 100,000 rows
Raw records inventory-raw-dataevery counted row, one line each1.54 seconds10.19 seconds10.67 seconds24123.66 KiB
Location summary location-summaryprogress and counts per location532 milliseconds2.06 seconds2.04 seconds61.73 KiB
Device summary device-summarycounts per scanning device529 milliseconds2.05 seconds2.04 seconds48.65 KiB
Inventory summary inventory-summarycounted rolled up by product1.04 seconds8.15 seconds9.17 seconds17829.25 KiB
Variance summary variance-summarycounted against book stock1.03 seconds10.16 seconds11.23 seconds21337.77 KiB
Change audit change-auditevery recorded correction533 milliseconds2.56 seconds3.06 seconds2019.04 KiB
Exception summary exception-summaryunmatched and problem rows521 milliseconds5.09 seconds2.56 seconds9067.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.

Raw records
9.1×
Location summary
9.0×
Device summary
9.0×
Inventory summary
9.9×
Variance summary
9.8×
Change audit
9.0×
Exception summary
10×

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.

MeasureMeasuredWhat it covers
API sampled RSS peak4001.94 MiBreached during a generation itself; sampling spans warmups, polling and downloads, so this is neither managed live memory nor a container limit
Driver RSS peak403.63 MiBthe Node driver on the same host
Allocated during measurement49.17 GiBSystem.Runtime counters cover the whole window and cannot be attributed to one report
GC pause, total4.84 secondssampled GC committed peak 2431.86 MiB
API process CPU331.05 secondssame window
PostgreSQL containernot collectedpodman stats peak during measurement; memory peak not collected
PostgreSQL temporary files0 bytesno 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.

JobTemplateSamplesAdmitted msQueued msExecuted ms, median / maxRequest to downloadable ms, median / maxDownloaded msOutput KiBInput rows per secondAPI 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.

7. How to trust this

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.

21 groups, 63 measurements, all verified medians and maxima only, small samples 3.27M-product live catalogue One report at a time, not a throughput number