.NET Performance Benchmarks
CodeFocus measured these workloads on 12 November 2026 using the BonniePDF 2026.10.28 .NET prerelease source build.
Results
Results are medians from one Windows machine. First-PDF timing starts in a fresh process. Warmed timing follows the warm-up listed below.
| Workload | Pages | First PDF | Warmed PDF | First-PDF peak working set | PDF size |
|---|---|---|---|---|---|
| Business invoice | 1 | 121.61 ms | 0.83 ms | 33.5 MiB | 2.6 KiB |
| Chart report | 1 | 147.91 ms | 0.85 ms | 34.5 MiB | 4.2 KiB |
| Long document | 1,563 | 1.51 s | 753.78 ms | 79.9 MiB | 1.49 MiB |
Workloads
- Business invoice. A synthetic invoice with 12 line items, quantities, prices and a total. Each warmed process generated 1,000 warm-up documents and then recorded 100 individual times.
- Chart report. An operating report with a 12-bar revenue chart, a three-slice doughnut chart and a quarterly table. Each warmed process generated 1,000 warm-up documents and then recorded 100 individual times.
- Long document. An inspection log with 100,000 numbered text paragraphs and automatic pagination. Each warmed process generated 10 warm-up documents and then recorded 5 individual times.
All fixtures use fixed synthetic data and generate A4 PDF 1.7 documents with standard Helvetica and default compression. The benchmark runs with tagging and PDF/A off.
Test setup and method
| Processor | Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz |
|---|---|
| Operating system | Windows 11 (build 26300) |
| Runtime | .NET 10.0.12, X64, workstation GC |
| Build | BonniePDF 2026.10.28, prerelease source, Release |
- Timing. A monotonic timer covers construction of a fresh document, layout and serialization to a byte array through
GenerateBytes(). Process startup and PDF file writes are outside the timed interval. - First PDF and memory. Each fixture runs once in each of 10 fresh processes. The first save includes the evaluation licence notice. The working set is the operating system’s peak resident memory for each process, including the .NET runtime, read immediately after generation. PDF size is the median first-PDF byte count.
- Warmed PDF. Each fixture runs in 3 fresh processes. The reported time is the median of their individual process medians after warm-up. The raw data includes every timed sample.
- Page counts. Poppler’s
pdfinforeads a separate generated sample for each fixture after timing completes.
These results describe single-process, sequential .NET 10 generation with these settings. Document structure, fonts, images, conformance settings and deployment hardware can affect time, memory and output size.
Reproduce the run
- Raw measurements (JSON)
- Benchmark files Program.cs and Benchmarks.csproj
Save both benchmark files in one directory. Run the following there with a clean BonniePDF .NET source checkout, the .NET 10 SDK and Poppler’s pdfinfo on your path.
git -C "<absolute-path-to-bonniepdf-checkout>" checkout --detach 0f9693b25a3cbf7b6fcf99522aa52e9b2052f6e2
dotnet build Benchmarks.csproj -c Release -p:BonniePdfSource="<absolute-path-to-bonniepdf-checkout>"
dotnet bin/Release/net10.0/Benchmarks.dll results.jsonThis command writes the chart fixture to a PDF for inspection.
dotnet bin/Release/net10.0/Benchmarks.dll sample chart-report chart-report.pdf