---
type: Article
title: ".NET PDF benchmark: 7 ms vs 212 ms | Marqius"
description: "Marqius against DinkToPdf and PuppeteerSharp on the same GitHub
  Linux machine: same invoice, same 4 cores."
resource: https://marqius.com/blog/wkhtmltopdf-dotnet-benchmark/
tags:
  - marqius
  - journal
status: stable
sources:
  - id: official-page
    resource: https://marqius.com/blog/wkhtmltopdf-dotnet-benchmark/
    last_modified: 2026-11-24T13:08:18.673Z
generated:
  by: process:marqius-site-build
  at: 2026-11-24T13:12:45.547Z
x_marqius:
  language: en
  source_sha256: 40cc0c0e47bed93f0f6aac4c6bc8a17e95c75c326cd4d0f0da59ef2a5aa63a9a
  extraction: public-main-content
---

wkhtmltopdf migration

# 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 November 24, 2026

| 
 | 

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

1.  Clone the [benchmark repository](https://github.com/marqiushq/marqius-wkhtmltopdf-dotnet).
2.  Go to `tests/bench`. Swap in your own HTML, if you want.
3.  Follow the [benchmark workflow](https://github.com/marqiushq/marqius-wkhtmltopdf-dotnet/blob/main/.github/workflows/benchmark.yml) for the complete setup. From the repository root, its measurement step is `python tests/bench.py bench-out`. [See the recorded run](https://github.com/marqiushq/marqius-wkhtmltopdf-dotnet/actions/runs/45357818586).

## Sources

-   [Bench program and invoice HTML](https://github.com/marqiushq/marqius-wkhtmltopdf-dotnet) (`tests/bench`)
-   [Real run on GitHub Actions](https://github.com/marqiushq/marqius-wkhtmltopdf-dotnet/actions/runs/45357818586)
-   [Plans and licences](https://marqius.com/wkhtmltopdf-buy/)

## 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.

## Keep reading

[Make PDFs in .NET: the Marqius.DinkToPdf manual](https://marqius.com/blog/html-to-pdf-dotnet-dinktopdf/) [wkhtmltopdf as a service: POST the HTML, get the PDF](https://marqius.com/blog/wkhtmltopdf-serve/) [Moving from wkhtmltopdf to Chrome? Check these three things first](https://marqius.com/blog/wkhtmltopdf-to-puppeteer/) [All journal guides](https://marqius.com/blog/)

Source for this page [^official-page].

[^official-page]: https://marqius.com/blog/wkhtmltopdf-dotnet-benchmark/

[Browse this section](index.md) · [Knowledge index](../index.md)
