PageSourceSearch

https://pdfluent.com/assets/RenderBenchmarkPage-CCzb1Pzm.js

js pdfluent.com collected 2026-10-03 20:10:12 UTC 6,886 bytes, 1 lines download raw bytes

1import{j as e,S as n,s as d,F as x}from"./index-5sf7JV6p.js";import{L as a}from"./vendor-react-8IDV7RHP.js";import{u as o}from"./usePageContent-CiCVu7q4.js";import"./vendor-i18n-DWqKOdDR.js";import"./vendor-ui-DUDizOZh.js";function p(){const t=o("benchmarks","rendering");if(!t)return null;const l={"@context":"https://schema.org","@type":"Dataset",name:"PDF Rendering Benchmark: PDFluent vs Poppler vs MuPDF",description:"Wall-clock time for rendering 500 PDF pages to PNG at 150 DPI.",url:"https://pdfluent.com/benchmarks/rendering"};return e.jsxs("div",{className:"w-full min-h-screen bg-white",children:[e.jsx(n,{title:t.title,description:t.description,canonical:t.canonical}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}),e.jsx("section",{className:"w-full pt-32 pb-16 px-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 uppercase tracking-wider mb-4",children:[e.jsx(a,{to:"/benchmarks/",className:"hover:text-gray-700 transition-colors",children:"Benchmarks"}),e.jsx("span",{children:"/"}),e.jsx("span",{children:t.breadcrumb})]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-semibold tracking-tight text-gray-900 leading-tight mb-4",children:t.headline}),e.jsx("p",{className:"text-lg text-gray-500 font-light leading-relaxed max-w-2xl",children:t.subheadline})]})}),e.jsx("section",{className:"w-full py-12 px-6 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-6",children:t.speedCaption}),e.jsx("div",{className:"rounded-lg border border-gray-200 overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-50 border-b border-gray-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-medium text-gray-700",children:"Library"}),e.jsx("th",{className:"text-right px-5 py-3 font-medium text-gray-700",children:"Total (ms)"}),e.jsx("th",{className:"text-right px-5 py-3 font-medium text-gray-700",children:"ms / page"}),e.jsx("th",{className:"text-right px-5 py-3 font-medium text-gray-700",children:"Peak RAM (MB)"}),e.jsx("th",{className:"text-left px-5 py-3 font-medium text-gray-700",children:"Notes"})]})}),e.jsx("tbody",{children:t.results.map((s,r)=>e.jsxs("tr",{className:`border-b border-gray-100 last:border-0 ${r%2===1?"bg-gray-50/50":""}`,children:[e.jsx("td",{className:"px-5 py-3 text-gray-900 font-medium",children:s.library}),e.jsx("td",{className:`px-5 py-3 text-right font-mono ${r===0?"text-gray-900 font-semibold":"text-gray-600"}`,children:s.totalTimeMs!=null?s.totalTimeMs.toLocaleString():"N/A"}),e.jsx("td",{className:`px-5 py-3 text-right font-mono ${r===0?"text-gray-900 font-semibold":"text-gray-600"}`,children:s.msPerPage??"N/A"}),e.jsx("td",{className:"px-5 py-3 text-right font-mono text-gray-600",children:s.peakMemoryMb??"N/A"}),e.jsx("td",{className:"px-5 py-3 text-gray-500 text-xs",children:s.notes})]},r))})]})}),e.jsx("p",{className:"mt-3 text-xs text-gray-500",children:t.speedFootnote})]})}),e.jsx("section",{className:"w-full py-12 px-6 bg-gray-50 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:t.qualityCaption}),e.jsx("p",{className:"text-sm text-gray-500 mb-6",children:t.qualityDescription}),e.jsx("div",{className:"rounded-lg border border-gray-200 overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-50 border-b border-gray-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-medium text-gray-700",children:"Library"}),e.jsx("th",{className:"text-right px-5 py-3 font-medium text-gray-700",children:"SSIM (mean)"}),e.jsx("th",{className:"text-right px-5 py-3 font-medium text-gray-700",children:"DSSIM (mean)"})]})}),e.jsx("tbody",{children:t.ssimScores.map((s,r)=>e.jsxs("tr",{className:`border-b border-gray-100 last:border-0 ${r%2===1?"bg-gray-50/50":""}`,children:[e.jsx("td",{className:"px-5 py-3 text-gray-900 font-medium",children:s.library}),e.jsx("td",{className:"px-5 py-3 text-right font-mono text-gray-700",children:s.ssim}),e.jsx("td",{className:"px-5 py-3 text-right font-mono text-gray-700",children:s.dssim})]},r))})]})}),e.jsx("p",{className:"mt-3 text-xs text-gray-500",children:t.qualityFootnote})]})}),e.jsx("section",{className:"w-full py-12 px-6 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Render a page with PDFluent"}),e.jsx("div",{className:"rounded-lg bg-gray-950 overflow-hidden",children:e.jsx("pre",{className:"p-4 overflow-x-auto text-sm leading-relaxed",children:e.jsx("code",{className:"text-gray-100 font-mono whitespace-pre",children:d["render-pages-to-png"]})})})]})}),e.jsx("section",{className:"w-full py-12 px-6 bg-gray-50 border-t border-gray-100",id:"methodology",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg",children:e.jsxs("p",{className:"text-sm text-amber-800",children:[e.jsx("strong",{children:"Note:"})," ",t.methodologyNote]})}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Methodology"}),e.jsxs("div",{className:"space-y-3 text-sm text-gray-600 leading-relaxed",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Test corpus:"})," ",t.methodology.corpus]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Task:"})," ",t.methodology.task]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Environment:"})," ",t.methodology.environment]}),e.jsxs("p",{children:[e.jsx("strong",{children:"SSIM reference:"})," ",t.methodology.ssimReference]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Versions:"})," ",t.methodology.versions]})]})]})}),e.jsx("section",{className:"w-full py-12 px-6 border-t border-gray-100",children:e.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col md:flex-row md:items-center md:justify-between gap-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-900 mb-3",children:"More benchmarks"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.related.map((s,r)=>e.jsx(a,{to:s.href,className:"text-xs px-3 py-1.5 rounded-full border border-gray-200 text-gray-700 hover:border-gray-400 transition-colors",children:s.label},r))})]}),e.jsx("div",{className:"shrink-0",children:e.jsx(a,{to:"/download/",className:"px-6 py-2.5 bg-gray-900 text-white rounded-lg text-sm font-medium hover:bg-gray-800 transition-colors text-center block",children:"Download PDFluent"})})]})}),e.jsx(x,{})]})}
1export{p as RenderBenchmarkPage};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.