Skip to content

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.

Wall time per document and engine, milliseconds, log scale kolinsky WeasyPrint Chromium wkhtmltopdf Typst 1 ms 10 ms 100 ms 1 s 10 s 100 s invoice-10 kolinsky, invoice-10: 9.0 ms 9.0 ms WeasyPrint, invoice-10: 624 ms Chromium, invoice-10: 784 ms wkhtmltopdf, invoice-10: 297 ms Typst, invoice-10: 160 ms invoice-100 kolinsky, invoice-100: 16 ms 16 ms WeasyPrint, invoice-100: 1,038 ms Chromium, invoice-100: 936 ms wkhtmltopdf, invoice-100: 319 ms Typst, invoice-100: 264 ms invoice-1000 kolinsky, invoice-1000: 123 ms 123 ms WeasyPrint, invoice-1000: 5,848 ms Chromium, invoice-1000: 1,872 ms wkhtmltopdf, invoice-1000: 571 ms Typst, invoice-1000: 1,063 ms columns kolinsky, columns: 12 ms 12 ms WeasyPrint, columns: 1,076 ms Chromium, columns: 819 ms wkhtmltopdf, columns: 316 ms Typst: n/a doc kolinsky, doc: 119 ms 119 ms WeasyPrint, doc: 8,147 ms Chromium, doc: 2,472 ms wkhtmltopdf: failed Typst: n/a odyssey kolinsky, odyssey: 174 ms 174 ms WeasyPrint, odyssey: 12,558 ms Chromium, odyssey: 2,300 ms wkhtmltopdf, odyssey: 1,302 ms Typst: n/a html5 kolinsky, html5: 152 ms 152 ms WeasyPrint, html5: 20,092 ms Chromium, html5: 2,348 ms wkhtmltopdf, html5: 1,476 ms Typst: n/a json kolinsky, json: 209 ms 209 ms WeasyPrint, json: 7,609 ms Chromium, json: 7,179 ms wkhtmltopdf, json: 558 ms Typst: n/a jsonraw kolinsky, jsonraw: 41 ms 41 ms WeasyPrint, jsonraw: 1,808 ms Chromium, jsonraw: 856 ms wkhtmltopdf, jsonraw: 355 ms Typst: n/a large kolinsky, large: 426 ms 426 ms WeasyPrint, large: 70,712 ms Chromium, large: 15,956 ms wkhtmltopdf: failed Typst: n/a

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 doc and large, 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)