The .NET PDF benchmark: 7 ms against 212 ms
This page measures how fast three .NET HTML-to-PDF converters turn the same invoice into a PDF. They ran on the same GitHub Linux machine, with 4 cores, one after another.
Marqius

Marqius.DinkToPdf | DinkToPdf 1.0.8 (libwkhtmltox 0.12.4) | PuppeteerSharp 25.18.1 (Chrome 157) | |
|---|---|---|---|
First PDF after the app starts | 65 ms | 245 ms | 504 ms |
Each PDF after that (median of 30) | 7.1 ms | 212 ms | 64 ms |
100 PDFs, 8 at a time | 265 a second | 4.7 a second | 28 a second |
Space it needs on the server | 23 MB | 45 MB | 725 MB |
How to read it
- First PDF after the app starts. The wait your user feels after a deploy or a cold start.
- Each PDF after that. Your steady speed under normal traffic.
- 100 PDFs, 8 at a time. What happens when many reports are due at once.
- Space it needs on the server. Disk used on every machine and every CI runner.
Why the numbers differ
Each Marqius PDF runs in its own process, so many run at once — as many as the server has processors. The SynchronizedConverter in DinkToPdf makes PDFs one at a time. Chrome is a browser.
One honest line: your own documents will differ. The bench is there to run on them.
The method
"Each converter is used the way its own examples show. DinkToPdf runs with SynchronizedConverter, and PuppeteerSharp keeps one browser open."
Run it yourself
- Clone the benchmark repository.
- Go to
tests/bench. Swap in your own HTML, if you want. - Follow the benchmark workflow for the complete setup. From the repository root, its measurement step is
python tests/bench.py bench-out. See the recorded run.
Sources
Reader questions
Which document does the bench use?
One invoice HTML. It ships in the repository, in tests/bench.
Will I get these exact numbers?
No. Your documents, your machine and your load differ. Run the bench on them.
What does it cost?
There are two licences. The Community licence is free: for personal projects, for teaching and learning, and for open-source projects, including their CI test runs and documentation builds. The commercial licence is for businesses.