Skip to content

Commit d7e4c1f

Browse files
Merge pull request #1853 from syncfusion-content/994832-ug
994832: Added Performance benchmarks for PDF and HTML to PDF library.
2 parents 2b7e1f7 + 67016fc commit d7e4c1f

File tree

5 files changed

+255
-87
lines changed

5 files changed

+255
-87
lines changed

Document-Processing-toc.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,9 @@
24132413
<li>
24142414
<a href="/document-processing/pdf/pdf-library/net/working-with-JavaScript">Working with JavaScript</a>
24152415
</li>
2416+
<li>
2417+
<a href="/document-processing/pdf/pdf-library/net/Performance-Metrics">Performance Metrics</a>
2418+
</li>
24162419
<li>
24172420
FAQ
24182421
<ul>
@@ -2607,6 +2610,9 @@
26072610
<li>
26082611
<a href="/document-processing/pdf/conversions/html-to-pdf/net/features">Features</a>
26092612
</li>
2613+
<li>
2614+
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Performance-Metrics">Performance Metrics</a>
2615+
</li>
26102616
<li>
26112617
<a href="/document-processing/pdf/conversions/html-to-pdf/net/advanced-installation">Advanced Installation</a>
26122618
</li>
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
title: Performance Metrics of Syncfusion HTML-to-PDF Conversion
3+
description: This section provides a detailed overview of the performance metrics and capabilities of the HTML-to-PDF conversion library.
4+
platform: document-processing
5+
control: PDF
6+
documentation: UG
7+
---
8+
9+
# HTML to PDF Performance Benchmarks
10+
11+
The Syncfusion<sup>&reg;</sup> [HTML to PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library/html-to-pdf) delivers high-performance APIs to convert web content into PDF documents programmatically. This performance benchmark report highlights the speed and efficiency of HTML-to-PDF conversion, showcasing how the library manages large-scale document rendering in real-world scenarios.
12+
13+
## Environment Details
14+
15+
The following system configurations were used for benchmarking:
16+
17+
OS Edition : Windows 11 Enterprise
18+
Version : 22H2
19+
Processor : 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
20+
Installed RAM : 20.0 GB (19.7 GB usable)
21+
System type : 64-bit operating system, x64-based processor
22+
23+
## Example Application
24+
25+
The benchmark details were obtained using the [Syncfusion.HtmlToPdfConverter.Net.Windows](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows) package. You can refer to the following sample, as well as the input and output files used:
26+
27+
Input HTML files : [Input HTML files](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/Performance_Testing/Syncfusion_HTMLtoPDF/wwwroot/Data)
28+
29+
Output PDF files : [Output document](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Output-924807763.zip)
30+
31+
## Results
32+
33+
<table border="1">
34+
<th style="font-size:14px" width="100px">Input Page count</th>
35+
<th style="font-size:14px">Conversion time
36+
37+
(Avg value of 5 conversions)
38+
</th>
39+
<th style="font-size:14px">Process Memory and CPU usage
40+
</th>
41+
<tr>
42+
<td>10+ Pages</td>
43+
<td>2.78 seconds</td>
44+
<td>
45+
Memory usage: 318 MB
46+
47+
CPU usage: 10%</td>
48+
</tr>
49+
<tr>
50+
<td>100+ pages</td>
51+
<td>3.65 seconds</td>
52+
<td>Memory usage: 367 MB
53+
54+
CPU usage: 14%</td>
55+
</tr>
56+
<tr>
57+
<td>1000+ pages</td>
58+
<td>6.72 seconds</td>
59+
<td>Memory usage: 813 MB
60+
61+
CPU usage: 27%</td>
62+
</tr>
63+
<tr>
64+
<td>10 documents with 100+ pages in a loop</td>
65+
<td>30.52 seconds</td>
66+
<td>
67+
Memory usage: 663 MB
68+
69+
CPU usage: 15%</td>
70+
</tr>
71+
<tr>
72+
<td>10 documents with 1000+ pages in a loop</td>
73+
<td>1 minute 10 seconds</td>
74+
<td>
75+
Memory usage: 2.2 GB
76+
77+
CPU usage: 64%</td>
78+
</tr>
79+
</table>
80+
81+
N> The performance metrics were recorded on a freshly configured machine. Speed and memory usage may vary if the machine is running other processes. Additionally, performance can be affected by:
82+
N> * External resources loaded in the HTML (such as images, scripts, and styles)
83+
N> * Network speed for online URL conversions
84+
N> * Hardware resources (CPU and memory)
85+
86+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/Performance_Testing/Syncfusion_HTMLtoPDF).

Document-Processing/PDF/Conversions/HTML-To-PDF/NET/features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ This code snippet shows how to configure the Table of Contents (TOC) to skip the
813813

814814
{% tabs %}
815815

816-
{% highlight c# tabtitle="C# [Cross-platform]" %}
816+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/HTML%20to%20PDF/Blink/Skip-cover-page-in-TOC-page-numbering/.NET/Skip-cover-page-in-TOC-page-numbering/Program.cs, 300" %}
817817

818818
using Syncfusion.Drawing;
819819
using Syncfusion.HtmlConverter;
@@ -895,7 +895,7 @@ htmlConverter.Close()
895895

896896
{% endtabs %}
897897

898-
You can download a complete working sample from GitHub.
898+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Skip-cover-page-in-TOC-page-numbering/.NET).
899899

900900
## Media Type
901901

Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,6 @@ Blink binaries (Version 109.0.5414.75),
10431043

10441044
</table>
10451045

1046-
10471046
## There was an error opening this document. This file is already open or in use by another application.
10481047

10491048
<table>
@@ -1094,90 +1093,6 @@ fileStream.Dispose();
10941093

10951094
</table>
10961095

1097-
## HTML to PDF Performance Benchmarks:
1098-
1099-
We have prepared the following benchmark details for converting HTML to PDF, using the specified machine configuration and input HTML files:
1100-
1101-
<h2>Environment Details:</h2>
1102-
1103-
1104-
OS Edition : Windows 11 Enterprise
1105-
1106-
Version : 22H2
1107-
1108-
Processor : 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
1109-
1110-
Installed RAM : 20.0 GB (19.7 GB usable)
1111-
1112-
System type : 64-bit operating system, x64-based processor
1113-
1114-
1115-
<h2>Example Application:</h2>
1116-
1117-
The benchmark details were obtained using the [Syncfusion.HtmlToPdfConverter.Net.Windows](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows) package. You can refer to the following sample, as well as the input and output files used:
1118-
1119-
Input HTML files : <a href="https://github.com/SyncfusionExamples/html_to_pdf_conversion/tree/main/Performance_Testing/Syncfusion_HTMLtoPDF/wwwroot/Data">https://github.com/SyncfusionExamples/html_to_pdf_conversion/tree/main/Performance_Testing/Syncfusion_HTMLtoPDF/wwwroot/Data</a>
1120-
1121-
Output PDF files : <a href="https://www.syncfusion.com/downloads/support/directtrac/general/ze/Output-924807763.zip">https://www.syncfusion.com/downloads/support/directtrac/general/ze/Output-924807763.zip</a>
1122-
1123-
<h2>Results:</h2>
1124-
1125-
<table border="1">
1126-
<th style="font-size:14px" width="100px">Input Page count</th>
1127-
<th style="font-size:14px">Conversion time
1128-
1129-
(Avg value of 5 conversions)
1130-
</th>
1131-
<th style="font-size:14px">Process Memory and CPU usage
1132-
</th>
1133-
<tr>
1134-
<td>10+ Pages</td>
1135-
<td>2.78 seconds</td>
1136-
<td>
1137-
Memory usage: 318 MB
1138-
1139-
CPU usage: 10%</td>
1140-
</tr>
1141-
<tr>
1142-
<td>100+ pages</td>
1143-
<td>3.65 seconds</td>
1144-
<td>Memory usage: 367 MB
1145-
1146-
CPU usage: 14%</td>
1147-
</tr>
1148-
<tr>
1149-
<td>1000+ pages</td>
1150-
<td>6.72 seconds</td>
1151-
<td>Memory usage: 813 MB
1152-
1153-
CPU usage: 27%</td>
1154-
</tr>
1155-
<tr>
1156-
<td>10 documents with 100+ pages in a loop</td>
1157-
<td>30.52 seconds</td>
1158-
<td>
1159-
Memory usage: 663 MB
1160-
1161-
CPU usage: 15%</td>
1162-
</tr>
1163-
<tr>
1164-
<td>10 documents with 1000+ pages in a loop</td>
1165-
<td>1 minute 10 seconds</td>
1166-
<td>
1167-
Memory usage: 2.2 GB
1168-
1169-
CPU usage: 64%</td>
1170-
</tr>
1171-
</table>
1172-
1173-
N> The performance metrics were recorded on a freshly configured machine. Speed and memory usage may vary if the machine is running other processes. Additionally, performance can be affected by:
1174-
1175-
N> * External resources loaded in the HTML (such as images, scripts, and styles)
1176-
N> * Network speed for online URL conversions
1177-
N> * Hardware resources (CPU and memory)
1178-
1179-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/Performance_Testing/Syncfusion_HTMLtoPDF).
1180-
11811096
## Custom fonts are not rendered in Azure App Service and Function Linux using Blink.
11821097

11831098
<table>
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
---
2+
title: Performance Metrics of the Syncfusion PDF Library
3+
description: This section provides a detailed overview of the performance metrics and capabilities of the PDF processing library.
4+
platform: document-processing
5+
control: PDF
6+
documentation: UG
7+
---
8+
9+
# Performance Metrics in PDF Library
10+
11+
The Syncfusion<sup>&reg;</sup> [.NET PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) provides high-performance APIs to create, read, edit, and secure PDF documents programmatically. This performance benchmark report highlights the speed and efficiency of key operations, demonstrating how PDF library handles large-scale document processing in real-world scenarios.
12+
13+
## Environment Details
14+
15+
The following system configurations were used for benchmarking:
16+
17+
* Operating System: Windows 10
18+
* Processor: AMD Ryzen 7 5800HS with Radeon Graphics 3.20 GHz
19+
* RAM: 16GB
20+
* .NET Version: .NET 10.0
21+
* Syncfusion® Version: [Syncfusion.Pdf.Imaging.Net.Core 31.2.12](https://www.nuget.org/packages/Syncfusion.Pdf.Imaging.Net.Core/31.2.12)
22+
23+
## Create document
24+
25+
The table below illustrates the performance of PDF document creation.
26+
27+
<table>
28+
<tr>
29+
<th>Pages</th>
30+
<th>Syncfusion<sup>&reg;</sup> Syncfusion Time (sec)</th>
31+
</tr>
32+
<tr>
33+
<td>1</td>
34+
<td>0.17 seconds</td>
35+
</tr>
36+
<tr>
37+
<td>100</td>
38+
<td>0.79 seconds</td>
39+
</tr>
40+
<tr>
41+
<td>500</td>
42+
<td>1.16 seconds</td>
43+
</tr>
44+
<tr>
45+
<td>1000</td>
46+
<td>1.68 seconds</td>
47+
</tr>
48+
</table>
49+
50+
## Open and save PDF document
51+
52+
The table below illustrates the performance of open and save operations when working with PDF documents.
53+
54+
<table>
55+
<tr>
56+
<th>Pages</th>
57+
<th>Input PDF files</th>
58+
<th>Syncfusion<sup>&reg;</sup> Time (sec)</th>
59+
</tr>
60+
<tr>
61+
<td>64</td>
62+
<td>PDF_Succinctly</td>
63+
<td>0.06 seconds</td>
64+
</tr>
65+
<tr>
66+
<td>132</td>
67+
<td>JavaScript_Succinctly</td>
68+
<td>0.42 seconds</td>
69+
</tr>
70+
</table>
71+
72+
## Apply Watermark
73+
74+
The table below illustrates the performance of watermark application operations in PDF documents.
75+
76+
<table>
77+
<tr>
78+
<th>Pages</th>
79+
<th>Input PDF files</th>
80+
<th>Syncfusion<sup>&reg;</sup> Time (sec)</th>
81+
</tr>
82+
<tr>
83+
<td>64</td>
84+
<td>PDF_Succinctly</td>
85+
<td>0.15 seconds</td>
86+
</tr>
87+
<tr>
88+
<td>132</td>
89+
<td>JavaScript_Succinctly</td>
90+
<td>0.66 seconds</td>
91+
</tr>
92+
</table>
93+
94+
## Merge PDF document
95+
96+
The table below illustrates the performance of merge operations on PDF documents.
97+
98+
<table>
99+
<tr>
100+
<th>Pages</th>
101+
<th>Input PDF files</th>
102+
<th>Syncfusion<sup>&reg;</sup> Time (sec)</th>
103+
</tr>
104+
<tr>
105+
<td>64</td>
106+
<td>PDF_Succinctly</td>
107+
<td>0.96 seconds</td>
108+
</tr>
109+
<tr>
110+
<td>132</td>
111+
<td>JavaScript_Succinctly</td>
112+
<td>0.96 seconds</td>
113+
</tr>
114+
</table>
115+
116+
## Split PDF document
117+
118+
The table below illustrates the performance of split operations on PDF documents.
119+
120+
<table>
121+
<tr>
122+
<th>Pages</th>
123+
<th>Input PDF files</th>
124+
<th>Syncfusion<sup>&reg;</sup> Time (sec)</th>
125+
</tr>
126+
<tr>
127+
<td>64</td>
128+
<td>PDF_Succinctly</td>
129+
<td>0.52 seconds</td>
130+
</tr>
131+
<tr>
132+
<td>132</td>
133+
<td>JavaScript_Succinctly</td>
134+
<td>1.37 seconds</td>
135+
</tr>
136+
</table>
137+
138+
## Compress PDF
139+
140+
The table below illustrates the performance of compression operations applied to PDF documents.
141+
142+
<table>
143+
<tr>
144+
<th>Pages</th>
145+
<th>Input PDF files</th>
146+
<th>Syncfusion<sup>&reg;</sup> Time (sec)</th>
147+
</tr>
148+
<tr>
149+
<td>64</td>
150+
<td>PDF_Succinctly</td>
151+
<td>12.28 seconds</td>
152+
</tr>
153+
<tr>
154+
<td>132</td>
155+
<td>JavaScript_Succinctly</td>
156+
<td>8.39 seconds</td>
157+
</tr>
158+
</table>
159+
160+
N> Compression efficiency varies based on the type of content in the input PDF document.
161+
N> Benchmarks were measured on a freshly configured system. Performance results such as speed and memory usage may differ when additional processes are running on the machine.

0 commit comments

Comments
 (0)