Benchmarks¶
Wall time and peak memory of kolinsky and other engines on the same documents, one fresh process per document.
Measured on 2026-11-12 on one machine (x86_64 12 CPUs), all engines with the same fonts.
Method¶
- Every engine renders every document in a fresh process: no warm pool and no reuse between documents. Start-up costs count, which matters most for the engines with a heavy runtime: Chromium starts a browser and WeasyPrint starts a Python interpreter for each document.
- Each document is rendered once untimed, then 3 to 5 times timed. The tables show the median wall time, from process start to the PDF written, and the peak resident memory of the render process.
- kolinsky keeps a font index cache across runs, as it does in normal use.
- All engines ran on the same otherwise idle machine with the same set of fonts, offline. wkhtmltopdf fails
on
docandlarge, which load external resources. - Typst does not read HTML; it renders its own templates of the same invoices, so it has numbers for the invoices only.
Documents:
invoice-10,invoice-100,invoice-1000: invoices with 10, 100 and 1,000 line items (1, about 4 and about 33 pages), from the MIT-licensed pdf-engine-benchmarks fixtures.columns,doc,odyssey,html5,json,jsonraw,large: the seven sample documents of the WeasyPerf set.
The measurement tool is a small Python script that runs each engine's command, takes the median of the timed runs and reads the peak memory from the operating system. How to run it is in the contributor guide of the source distribution.
Wall time (ms)¶
| Document | kolinsky | WeasyPrint | Chromium | wkhtmltopdf | Typst |
|---|---|---|---|---|---|
| invoice-10 | 9.0 | 624 | 784 | 297 | 160 |
| invoice-100 | 16 | 1,038 | 936 | 319 | 264 |
| invoice-1000 | 123 | 5,848 | 1,872 | 571 | 1,063 |
| columns | 12 | 1,076 | 819 | 316 | n/a |
| doc | 119 | 8,147 | 2,472 | failed | n/a |
| odyssey | 174 | 12,558 | 2,300 | 1,302 | n/a |
| html5 | 152 | 20,092 | 2,348 | 1,476 | n/a |
| json | 209 | 7,609 | 7,179 | 558 | n/a |
| jsonraw | 41 | 1,808 | 856 | 355 | n/a |
| large | 426 | 70,712 | 15,956 | failed | n/a |
Peak memory (MB)¶
| Document | kolinsky | WeasyPrint | Chromium | wkhtmltopdf | Typst |
|---|---|---|---|---|---|
| invoice-10 | 10 | 58 | 224 | 69 | 28 |
| invoice-100 | 13 | 67 | 229 | 69 | 37 |
| invoice-1000 | 41 | 160 | 265 | 78 | 130 |
| columns | 11 | 57 | 222 | 68 | n/a |
| doc | 41 | 178 | 254 | failed | n/a |
| odyssey | 44 | 155 | 255 | 106 | n/a |
| html5 | 78 | 743 | 245 | 127 | n/a |
| json | 46 | 204 | 254 | 77 | n/a |
| jsonraw | 15 | 64 | 223 | 69 | n/a |
| large | 191 | 1,225 | 466 | failed | n/a |
Engine versions¶
- WeasyPrint: WeasyPrint version 70.0
- Chromium: Chromium 156.0.8078.79 built on Debian GNU/Linux 12 (bookworm)
- wkhtmltopdf: wkhtmltopdf 0.12.6
- Typst: typst 0.14.2 (b33de9de)