ZingPDF logo

Benchmark Comparison

ZingPDF performance

We continually optimise ZingPDF for speed, and aim to be completely transparent about our metrics.

These benchmarks compare ZingPDF with PDFsharp, PdfPig, and iText on in-memory .NET workloads including page access, plain-text extraction, page appends, and document merges.

Latest verified snapshots

Performance benchmarks last run on 21 Apr 2026.

Methodology

How these numbers were produced

Runtime

.NET 8 on Windows 11, measured with BenchmarkDotNet on a 13th Gen Intel Core i7-13700HX.

Input model

Benchmarks use fully buffered MemoryStream inputs, so the results emphasize parser and object-model efficiency rather than disk or network I/O.

Scope

This page focuses on representative workloads: access, extraction, append, and merge. Rendering and remote linearized access are not covered here.

Comparison note

Highlights are based on workloads where the compared libraries are performing equivalent work. Some page-access rows are omitted when a library exposes a materially different execution path on the fixture.

Results

Latest verified benchmark snapshots by workload family

Open minimal PDF 4.860 µs

ZingPDF fastest in the latest verified rerun.

Text-heavy first-page extraction 38.93 ms

ZingPDF fastest in the latest verified rerun.

Append 10 pages and save 1.798 ms

ZingPDF fastest in the latest verified rerun.

Large merge 30.422 ms

PDFsharp fastest in the latest verified rerun.

Snapshot

First-page access, mixed workload

ZingPDF
73.901 µs
PDFsharp
953.004 µs
PdfPig
1,181.713 µs
iText
2,492.956 µs

Snapshot

First-page text extraction, text-heavy PDF

ZingPDF
38.93 ms
PdfPig
74.92 ms
iText
344.36 ms

Snapshot

Append 10 pages and save

ZingPDF
1.798 ms
PDFsharp
3.567 ms
iText
11.541 ms

Snapshot

Large merge

PDFsharp
30.422 ms
ZingPDF
33.970 ms
iText
34.715 ms

Access

Seekable stream access and page lookup

Latest verified benchmark run: 21 Apr 2026.

Workload ZingPDFPDFsharpPdfPigiText
Open minimal PDF 4.860 µs11.638 µs41.145 µs44.779 µs
Open larger real-world PDF 4.989 µs5,186.462 µs288.183 µs15,584.398 µs
Open and count pages, larger real-world PDF 64.854 µs5,120.180 µs258.164 µs15,305.888 µs
Open and get first page, mixed workload 73.901 µs953.004 µs1,181.713 µs2,492.956 µs
Open and get middle page, mixed workload 154.891 µs876.371 µs1,147.681 µs2,539.992 µs
Open and get last page, mixed workload 189.207 µs893.967 µs1,201.403 µs2,406.977 µs

Extraction

Plain-text extraction across current fixtures

Latest verified benchmark run: 21 Apr 2026.

Workload ZingPDFPdfPigiText
Open and extract first-page plain text, text-heavy PDF 38.93 ms74.92 ms344.36 ms
Extract first-page plain text, already-open text-heavy PDF 30.00 ms86.76 ms291.02 ms
Extract full-document plain text, text-heavy PDF 313.77 ms563.11 ms3,571.49 ms
Open and extract first-page plain text, small composite-font PDF 35.13 ms76.78 ms289.89 ms
Extract first-page plain text, already-open small composite-font PDF 27.61 ms99.42 ms294.06 ms

Writes

Append-heavy edits and larger merge saves

Latest verified benchmark run: 21 Apr 2026.

Workload ZingPDFPDFsharpiText
Append 1 page to mixed-workload PDF and save 1.733 ms3.682 ms10.083 ms
Append 10 pages to mixed-workload PDF and save 1.798 ms3.567 ms11.541 ms
Merge text-heavy PDF into mixed-workload PDF and save 33.970 ms30.422 ms34.715 ms