Benchmarks · measured Nov 30, 2026

PDF rendering benchmarks.

The same invoice data rendered by every engine over HTTP, 21 requests each, on one logical CPU with 1 GiB of memory. Pick a size and a metric.

How we measured
Time vs Gotenberg10.2× faster52.73 ms vs 536.87 ms
CPU vs Gotenberg10.3× less CPU51.97 ms vs 534.96 ms of CPU
Memory vs Browserless32× less RAM25.65 MiB vs 817.73 MiB peak
Median time per invoice · 500 items HTTP round trip with PDF download · lower is better
  1. PressJet JSON52.73 ms
  2. PressJet HTML108.21 ms
  3. jsPDF133.56 ms
  4. Gotenberg536.87 ms
  5. Browserless804.84 ms
  6. dompdf902.41 ms
  7. WeasyPrint2,419.25 ms
  8. react-pdf2,524.93 ms

Every number, in one table.

Download CSV ↓
500-item invoice, medians of 21 requests per engine, sorted by median time.
EngineMedianp95CPUPeak RAMPDF size
PressJet JSON52.73 ms92.91 ms51.97 ms25.65 MiB63.31 KiB
PressJet HTML108.21 ms192.86 ms107.26 ms25.65 MiB63.53 KiB
jsPDF133.56 ms206.17 ms130.26 ms47.01 MiB357.43 KiB
Gotenberg536.87 ms666.30 ms534.96 ms573.20 MiB53.13 KiB
Browserless804.84 ms1,225.72 ms800.47 ms817.73 MiB375.24 KiB
dompdf902.41 ms1,647.87 ms897.26 ms94.64 MiB32.92 KiB
WeasyPrint2,419.25 ms4,225.06 ms2,405.10 ms117.82 MiB50.73 KiB
react-pdf2,524.93 ms3,872.35 ms2,469.60 ms173.69 MiB48.69 KiB
Batch · invoice pages per request 200 pages in 276.1 ms
20-page batchPressJet 11.6× faster
PressJet36.6 ms
Gotenberg425.2 ms
200-page batchPressJet 5.3× faster
PressJet276.1 ms
Gotenberg1,453.5 ms
Compare within each batch: same pages, same data, both engines.
Median of 7 HTTP requests including the PDF download, embedded logo on every page. Batch method
Method Rerun it on your machine
  • Each engine runs in its own container, 1 logical CPU, 1 GiB limit.
  • One warm-up, then 21 measured requests. We report the median and p95.
  • Every PDF is checked: invoice IDs, totals, every line item and page counters.
  • dompdf gets the invoice as an HTML table and jsPDF draws it with jspdf-autotable, since neither reads flexbox print HTML.
Command
python3 bench/compare.py --both-inputs --rows 1 100 500 --samples 21 --resource-csv samples.csv
Full method, adapters and raw data

More measurements.

How the comparison was run, PressJet against its previous build, Forme on the same HTML invoice, and five lease documents moved off Gotenberg.

How to read and reproduce these results

On November 30, 2026, one client rotated through renderers on an Intel Core i7-1265U development host. HTTP time includes reading the finished PDF. CPU covers the service and its children. The RAM metric is the median of each request’s sampled peak, including the warm service and charged file cache. Sampling every 5 ms can miss shorter peaks. For the change between PressJet builds, use the paired rerun below.

Gotenberg 9.10.3, Browserless Chromium 2.64.4, WeasyPrint 70.0 and PressJet HTML received the same invoice HTML and print CSS. dompdf 3.1.6 implements CSS 2.1 without flexbox, so it received the same invoice as an HTML table, and its adapter wrote the page footer with dompdf’s page_text. jsPDF 4.2.1 built the invoice using jspdf-autotable 5.0.9 and structured invoice data. PressJet native received a JSON tree, and react-pdf 4.9.2 built React components. dompdf laid the 500-item invoice out on 18 pages; every other path used 17. Output sizes reflect each engine’s font and tagging choices.

Product names belong to their owners. PressJet is not affiliated with or endorsed by them.

Reproduce the service comparison · Individual requests · Download summary CSV ↓

PressJet before and after

On November 30, both builds ran in fresh containers on the same logical CPU with 1 GiB, one worker and the result cache disabled. These are 21 measured requests per build and input for the 500-item invoice. The download includes 1- and 100-item invoices as well.

ItemsBuild and inputPagesMedian HTTP (ms)p95 HTTP (ms)Median CPU (ms)Sampled peak RAM (MiB)PDF (KiB)
500Previous JSON1751.5667.3250.8422.163.3
500Current JSON1736.6445.2835.8925.963.3
500Previous HTML17104.72117.57104.1121.663.5
500Current HTML1776.4599.8975.7925.963.5
Download paired invoice measurements ↓

Eight clients sending invoices and leases

In 12 paired rounds, the previous build used one FIFO worker. The current build used two workers on the same CPU quota, with one reserved for small jobs after 115 ms in the queue. Every round rendered 84 invoices and twelve 47-page leases. Both builds produced the same PDFs.

MetricPrevious buildCurrent build
PDFs/s64.780.5
Invoice p95, median (ms)152.0121.6
Rounds with invoice p95 below 150 ms5/1212/12
Lease p95, median (ms)193.0172.4
CPU per PDF (ms)15.412.4
Sampled peak RAM (MiB)17.627.6
Download paired load measurements ↓

PressJet and Forme on the same HTML invoice

All three deployments received identical HTML in rotating order. All three printed every item, amount, total and page footer. Their font defaults and pagination produced different page counts and file sizes.

ItemsRendererPagesMedian HTTP (ms)p95 HTTP (ms)Median CPU (ms)Median peak RAM (MiB)PDF (KiB)
1Pressjet native14.939.923.0525.726.5
1Pressjet Node/WASM19.9320.586.61139.626.5
1Forme Node/WASM112.0020.879.91116.14.1
100Pressjet native422.3632.7721.8725.536.1
100Pressjet Node/WASM427.3140.9526.20143.436.1
100Forme Node/WASM7116.50221.66115.79130.810.5
500Pressjet native1794.73183.7792.4925.763.5
500Pressjet Node/WASM17102.22161.2790.47158.763.5
500Forme Node/WASM34309.41566.60308.18148.137.5

On November 30, 2026, 21 measured requests per size followed 10 warm-ups. Each container had one pinned logical CPU and 1 GiB. Both WASM packages ran through the same persistent Node HTTP adapter. Forme used @formepdf/html 0.34.1. The native PressJet server ran with its result cache disabled. The host was an Intel Core i7-1265U. RAM includes the entire warm container and was sampled every 5 ms.

Download individual measurements ↓
Compare the same typeface and page breaks

A second invoice specifies 20 items per page and sends the same Archivo TrueType file to each renderer. Every PDF was checked for embedded Archivo, the items on each page, accents, currency symbols, amounts and page labels.

ItemsRendererPagesMedian HTTP (ms)p95 HTTP (ms)Median CPU (ms)Median peak RAM (MiB)PDF (KiB)
1Pressjet native12.012.171.6025.96.0
1Pressjet Node/WASM13.756.713.40162.26.0
1Forme Node/WASM16.5311.516.08148.65.3
100Pressjet native57.4610.096.6226.010.3
100Pressjet Node/WASM58.7915.548.29165.610.3
100Forme Node/WASM521.0534.4020.52148.49.2
500Pressjet native2533.4356.3332.6425.825.8
500Pressjet Node/WASM2534.9776.1433.47166.725.8
500Forme Node/WASM2593.69154.0693.10148.223.3
Download matched-page measurements ↓
First PDF in Chrome

One-line invoice in Chrome 157.0.8103.38 on November 30. Each engine ran in nine fresh browser contexts. The first PDF includes uncached SDK loading over localhost, compilation and rendering. Warm latency covers seven subsequent renders per context.

RendererFirst PDF median (ms)Warm median (ms)
Pressjet WASM175.36.4
Forme WASM171.012.3
Download Chrome measurements ↓ · Download November 29 Edge measurements ↓
November 29 worker and queue experiments

Eight concurrent clients shared one pinned CPU and 1 GiB. Each round rendered 84 invoices and 12 leases of 47 pages. Each request had a distinct job key and every PDF matched its validated reference. Values are medians across six rounds per configuration for worker count and reservation, and twelve for paragraph reuse. Compare rows within each experiment.

ExperimentConfigurationPDFs/sInvoice p95 (ms)Invoice queue p95 (ms)Lease p95 (ms)CPU per PDF (ms)Peak RAM (MiB)
Worker count1 shared44.4230.2224.2334.922.722.3
Worker count2 shared36.5410.6396.0506.727.340.7
Worker count4 shared37.7429.8401.8890.426.477.0
Reservation1 shared47.8255.1250.2330.820.922.4
Reservation1 per document type43.151.139.01360.423.332.7
Paragraph reuseBefore, 1 worker44.8223.0216.6317.622.322.3
Paragraph reuseAfter, 1 worker63.2145.1139.6200.315.817.6

After enabling paragraph reuse, the invoice p95 was below 150 ms in 8 of 12 rounds. It ranged from 105 to 210 ms. The leases in this workload repeat standard clauses.

Download load measurements ↓

Can invoices stay below 150 ms in every round?

Each trial alternated the previous one-worker server with the candidate. Both rendered the same PDFs under a 1 GiB limit. The CPU column gives each container's CPU quota. Worker wait is the age at which small documents become eligible for the extra worker. A value of zero uses the regular queue.

TrialVersionCPUsWorkersWorker wait (ms)Rounds below 150 msInvoice p95, median (ms)Invoice p95, worst (ms)Lease p95, median (ms)PDFs/sPeak RAM (MiB)
100 ms waitbaseline1105/12162.9306.3206.658.217.4
100 ms waitcandidate1210012/12119.0127.8232.270.927.8
Two CPUsbaseline1105/12151.5254.6192.260.817.4
Two CPUscandidate236012/1276.890.2136.0142.545.2
115 ms waitbaseline1105/12164.5272.4221.163.017.5
115 ms waitcandidate1211512/12122.8137.4150.578.927.8
Download paired latency trials ↓

Local API, result cache enabled and every response freshly rendered. With a one-CPU quota and unrestricted affinity, 11 of 12 rounds passed (worst invoice p95 158.4 ms). Pinned to one logical CPU, 12 of 12 rounds passed (worst invoice p95 146.3 ms).

Download local API verification ↓

Move documents off Gotenberg

Five lease documents, printed from the same HTML and CSS by Gotenberg (Chromium) and by PressJet, and from native JSON by PressJet. Every PressJet PDF has Chromium’s page count, page starts and text. Each cell shows Gotenberg / PressJet HTML / PressJet JSON, medians of seven warm requests on one logical CPU with 1 GiB per service.

Document Pages HTTP time (ms) CPU (ms) Peak RAM (MiB)
Notice 2 217.1 / 5.4 / 4.3 215.2 / 4.8 / 4.0 533.5 / 12.1 / 11.8
Addendum 4 257.4 / 11.4 / 9.3 252.6 / 10.8 / 8.8 538.9 / 12.6 / 12.6
Lease, 16 clauses 10 273.8 / 29.4 / 21.0 271.6 / 28.1 / 20.1 542.5 / 14.7 / 14.4
Lease, 40 clauses 20 284.1 / 53.2 / 43.6 282.8 / 52.5 / 42.8 547.5 / 16.3 / 16.3
Lease, 104 clauses 47 405.6 / 116.2 / 99.0 404.7 / 114.0 / 98.1 569.2 / 22.4 / 22.1

On the 47-page lease, the same HTML took 71.4% less time, 71.8% less CPU and 96.1% less peak memory in PressJet. Measured on 29 November 2026. Method and reproduction · Individual requests