Skip to content
Download

HOPF Rendering Benchmark: 491 Pages Across Three Devices

HOPF is the page format CueFlip 1.7 draws scores with. We took 491 pages from 90 real scores and compared it page by page with Apple's CoreGraphics and PDFKit, PDFium, MuPDF, pdf.js and Poppler. Drawing speed was measured against all six on Mac mini (M4) and MacBook Pro (M5 Pro), and against CoreGraphics, PDFKit and PDFium on iPad Pro (M4); energy on the two Macs; whether every device draws the same bytes, across all three; and how close each renderer comes to the others' consensus, on the MacBook Pro.

3.01 ms First draw Median of 491 pages on iPad Pro (M4)

  • 0.754 ms Median redraw
  • 8.97× First draw against PDFKit, geometric mean
  • 28.7× Redraw against PDFKit, geometric mean
  • 100% Pages drawn byte for byte the same on all three devices

Performance and energy

Once a score is open, HOPF records the lowest median latency of every benchmarked renderer across all three devices and all four page categories, keeping every page category on iPad Pro (M4) comfortably inside the 8.3 ms frame budget even on first draw (composite pages 5.40 ms, JPEG scans 3.55 ms, 1-bit scans 1.84 ms, and vector pages 2.01 ms). Here, a first draw measures a page's initial render after opening a document in a fresh process, a redraw measures repeating the same page with warm caches, and geometric means summarize per-page speedups without allowing extreme outliers to skew the result.

We conducted the cross-renderer benchmark on November 16, 2026 across 491 pages sampled from 90 real musical scores, up to 6 pages per score (168 composite pages, 85 JPEG scans, 111 1-bit scans, and 127 vector pages), rendered at 1668 px wide on white with 1-byte greyscale output where supported. Each renderer processed every document twice in fresh processes using ABBA ordering and a seeded random document sequence, isolating library startup and open from first draw and three warm redraws. Testing ran on a MacBook Pro (M5 Pro, 48 GB, macOS 27.0, with background workloads occupying a median of 1.1 cores), a nearly idle Mac mini (M4, 16 GB, macOS 27.2), and a 13-inch iPad Pro (M4, 8 GB, iPadOS 27.0.1). HOPF (November 2026 build) ran alongside Apple's CoreGraphics and PDFKit, PDFium 159.0.8152.0, and on the Macs, MuPDF 1.28.6 (tested both directly and replaying a once-recorded display list), Poppler 26.06.0 and 26.04.0 (Splash backend), and pdf.js 6.5.438 on Node with @napi-rs/canvas 1.1.1.

The table below details first draws by page type, redraws, one-time compile overhead, startup and opening, and peak memory per device. On iPad Pro, HOPF hits a median of 3.01 ms on first draw and 0.754 ms on redraw across all pages, compared with 35.5 ms and 29.0 ms for PDFKit; on MacBook Pro, medians drop to 1.50 ms and 0.396 ms.

Benchmark results

MeasurementHOPFCoreGraphicsPDFKitPDFium
First draw
Composite median of 168 pages5.40 ms44.0 ms43.4 ms20.9 ms
JPEG scan median of 85 pages3.55 ms28.2 ms28.1 ms14.8 ms
1-bit scan median of 111 pages1.84 ms64.3 ms63.8 ms19.5 ms
Vector median of 127 pages2.01 ms6.15 ms6.09 ms5.52 ms
All pages median of 491 pages3.01 ms34.0 ms35.5 ms14.4 ms
Redraw
All pages median of 491 pages0.754 ms28.9 ms29.0 ms9.75 ms
Costs
One-time compile per page, median of 90 documents4.32 msDoes not applyDoes not applyDoes not apply
Start-up and opening median of 90 documents0.663 ms1.98 ms2.25 ms1.16 ms
Peak memory median of 90 documents51.3 MB52.9 MB53.9 MB48.7 MB

Versions: HOPF, November 2026 build; CoreGraphics and PDFKit in iPadOS 27.0.1; PDFium 159.0.8152.0.

Pages drawn 1668 px wide, two trials each. A first draw is a page's first in a fresh process, with start-up and opening counted on their own. iPad Pro (M4), iPadOS 27.0.1, November 2026.

Tail latency shows how consistently that speed holds up. On first draw, 95% of pages finish within 7.35 ms on Mac mini (6.66 ms on MacBook Pro) and 17.3 ms on iPad Pro, while the other renderers spread into far longer tails: on iPad Pro, PDFium's 95th percentile reaches 85.5 ms and CoreGraphics hits 164 ms. Against PDFium, the fastest competing engine, HOPF wins 100% of all 491 pages on first draw and 99.8% on redraw on iPad Pro.

Share of pages drawn within a given time

Renderer50% of pages within
HOPF3.01 ms
CoreGraphics34.0 ms
PDFKit35.5 ms
PDFium14.4 ms
First draw of a page (ms), Mac mini (M4)
Share of pagesHOPFCoreGraphicsPDFKitPDFiumMuPDFMuPDF, display listpdf.jsPoppler
0%0.4261.851.901.411.070.6126.594.01
5%0.6224.034.083.042.161.2913.17.28
10%0.6824.854.783.573.072.0515.59.01
15%0.7225.785.683.894.813.3818.610.5
20%0.7846.866.644.796.314.5919.912.7
25%0.8738.828.955.589.186.7021.018.4
30%0.95614.516.46.6510.69.8523.221.3
35%1.0622.822.57.6314.213.128.022.8
40%1.1525.525.49.1718.416.831.627.0
45%1.2528.528.710.521.319.835.928.2
50%1.4032.132.212.224.923.843.929.2
55%1.6034.835.013.525.725.249.332.2
60%1.8540.340.114.727.526.669.636.4
65%2.3546.246.217.430.129.281.137.8
70%2.8949.849.820.133.833.487.947.0
75%3.3456.655.822.137.936.893.761.7
80%4.1566.266.425.041.941.310483.2
85%5.1179.778.030.148.447.6131109
90%5.9211010936.359.157.9170154
95%7.3515915986.984.481.9203208
99%12.1301301117186183499443
100%27.0308307121215214594486
First draw of a page (ms), MacBook Pro (M5 Pro)
Share of pagesHOPFCoreGraphicsPDFKitPDFiumMuPDFMuPDF, display listpdf.jsPoppler
0%0.3721.861.881.371.000.6065.994.20
5%0.5284.053.992.922.091.2511.67.39
10%0.6314.764.743.292.931.9314.08.87
15%0.6795.725.623.704.713.2816.810.3
20%0.7466.966.504.535.954.2617.712.3
25%0.8259.068.615.558.726.5418.817.9
30%0.91115.415.46.6710.19.6121.719.8
35%1.0021.320.87.7113.012.325.221.6
40%1.1424.623.98.9816.516.228.525.1
45%1.2427.326.710.320.318.733.526.6
50%1.5030.329.511.422.721.942.228.4
55%1.6633.533.612.724.024.051.031.1
60%1.9039.339.214.125.425.170.434.0
65%2.3442.842.116.627.927.178.835.8
70%2.7244.644.019.332.231.087.444.0
75%3.1852.151.321.334.834.510057.4
80%3.8965.560.624.939.838.711378.0
85%4.8880.772.029.045.745.614398.2
90%5.5510310034.556.456.3171143
95%6.6614013975.680.176.8240182
99%12.1269268112171172444391
100%18.9282283118198200733446
First draw of a page (ms), iPad Pro (M4)
Share of pagesHOPFCoreGraphicsPDFKitPDFium
0%0.6002.212.141.41
5%0.9884.394.393.62
10%1.155.395.474.22
15%1.326.506.525.24
20%1.479.129.186.47
25%1.5714.014.37.35
30%1.7218.518.78.47
35%1.9323.424.49.83
40%2.1427.828.111.3
45%2.5331.032.212.9
50%3.0134.035.514.4
55%3.5038.040.015.6
60%4.1646.446.317.6
65%4.8250.450.420.4
70%5.7853.153.823.0
75%6.8262.161.926.3
80%8.0775.875.030.5
85%9.8393.894.135.4
90%12.011812042.6
95%17.316416385.5
99%28.9311312119
100%52.0338339141
The first draw of each of 491 pages from 90 documents, 1668 px wide, in a fresh process; start-up and opening not counted. iPad Pro (M4), iPadOS 27.0.1, November 2026.

The speedup chart places already-compiled render performance directly beside ratios that include the one-time compile cost. On iPad Pro, HOPF's geometric mean speedup reaches 8.97 times over PDFKit and 4.25 times over PDFium on first draw, rising to 28.7 and 10.8 times on redraw (reaching 117.8 times faster than PDFKit on 1-bit scan redraws). Even when folding each page's share of the compile cost into that first draw, HOPF still beats PDFium by 1.74 times on iPad Pro and 3.15 times on MacBook Pro (and 4.77 times over MuPDF's display-list preparation and first draw on MacBook Pro), while compilation is paid only once per score.

How much faster HOPF draws a page

  • Drawing a page
  • Counting the one-time compile
CoreGraphics
PDFKit
PDFium
How many times faster HOPF draws a page, geometric mean over all pages
Device and rendererDrawing a pageCounting the one-time compile
Mac mini (M4), CoreGraphics15.2×, faster on 100% of pages6.61×, faster on 97% of pages
Mac mini (M4), PDFKit15.1×, faster on 100% of pages6.58×, faster on 97% of pages
Mac mini (M4), PDFium6.79×, faster on 100% of pages2.95×, faster on 93% of pages
Mac mini (M4), MuPDF10.3×, faster on 100% of pages4.48×, faster on 93% of pages
Mac mini (M4), MuPDF, display list9.02×, faster on 99% of pages4.51×, faster on 94% of pages
Mac mini (M4), pdf.js27.0×, faster on 100% of pages11.7×, faster on 100% of pages
Mac mini (M4), Poppler18.9×, faster on 100% of pages8.21×, faster on 100% of pages
MacBook Pro (M5 Pro), CoreGraphics15.3×, faster on 100% of pages7.00×, faster on 98% of pages
MacBook Pro (M5 Pro), PDFKit15.0×, faster on 100% of pages6.88×, faster on 97% of pages
MacBook Pro (M5 Pro), PDFium6.87×, faster on 100% of pages3.15×, faster on 93% of pages
MacBook Pro (M5 Pro), MuPDF10.3×, faster on 100% of pages4.70×, faster on 94% of pages
MacBook Pro (M5 Pro), MuPDF, display list9.02×, faster on 99% of pages4.77×, faster on 94% of pages
MacBook Pro (M5 Pro), pdf.js27.8×, faster on 100% of pages12.7×, faster on 100% of pages
MacBook Pro (M5 Pro), Poppler18.9×, faster on 100% of pages8.65×, faster on 100% of pages
iPad Pro (M4), CoreGraphics8.90×, faster on 99.8% of pages3.64×, faster on 88% of pages
iPad Pro (M4), PDFKit8.97×, faster on 99.8% of pages3.67×, faster on 88% of pages
iPad Pro (M4), PDFium4.25×, faster on 100% of pages1.74×, faster on 79% of pages
Each renderer's first-draw time over HOPF's, page by page: the geometric mean of 491 pages with its 95% interval. Hatched bars count each document's one-time compile, shared out over its pages. iPad Pro (M4), iPadOS 27.0.1, November 2026.

The cost model translates those medians into cumulative usage across 1, 10, and 100 draws per page, amortizing HOPF's compile overhead across reads. On iPad Pro, HOPF already wins on a page drawn just once (7.33 ms compile included, versus 14.4 ms for PDFium and 35.5 ms for PDFKit). Across 100 draws, HOPF's amortized cost converges to 0.819 ms per draw, compared with 9.79 ms and 29.0 ms.

One compile, many draws

  • HOPF, drawing
  • HOPF, the compile shared out

Drawn once

HOPF
PDFium
CoreGraphics
PDFKit

Drawn 10 times

HOPF
PDFium
CoreGraphics
PDFKit

Drawn 100 times

HOPF
PDFium
CoreGraphics
PDFKit
Average time per draw (ms), Mac mini (M4)
RendererDrawn onceDrawn 10 timesDrawn 100 times
HOPF3.23 ms0.796 ms0.553 ms
PDFium12.2 ms9.72 ms9.47 ms
CoreGraphics32.1 ms14.9 ms13.2 ms
PDFKit32.2 ms15.0 ms13.3 ms
Average time per draw (ms), MacBook Pro (M5 Pro)
RendererDrawn onceDrawn 10 timesDrawn 100 times
HOPF3.13 ms0.670 ms0.424 ms
PDFium11.4 ms9.06 ms8.82 ms
CoreGraphics30.3 ms12.6 ms10.9 ms
PDFKit29.5 ms13.0 ms11.3 ms
Average time per draw (ms), iPad Pro (M4)
RendererDrawn onceDrawn 10 timesDrawn 100 times
HOPF7.33 ms1.41 ms0.819 ms
PDFium14.4 ms10.2 ms9.79 ms
CoreGraphics34.0 ms29.4 ms28.9 ms
PDFKit35.5 ms29.6 ms29.0 ms
Average time per draw of a page drawn once, 10 and 100 times, built from the medians in the table above: HOPF compiles the page once, draws it, then redraws it; the others draw it, then redraw it. iPad Pro (M4), iPadOS 27.0.1, November 2026.

That speed advantage translates directly into major power savings, especially on composite pages, 1-bit scans, and JPEG scans. On Mac mini composite pages in 20-second continuous loops, HOPF consumes just 5.05 mJ of CPU energy per page with virtually zero GPU draw, compared with 22.2 mJ for PDFium, 34.5 mJ for MuPDF's display list, and 166 mJ for CoreGraphics; on 1-bit scans, HOPF uses 17.7 mJ against 70.1 mJ for MuPDF's display list and 551 mJ for CoreGraphics. On iPad Pro, where iOS exposes per-process CPU energy counters across all 491 pages, HOPF consumes a mean of 14.1 mJ per redraw versus 78.4 mJ for PDFium and 247 mJ for PDFKit.

Energy to draw a page

  • HOPF, CPU
  • HOPF, GPU (about)

Composite

HOPF
CoreGraphics
PDFKit
PDFium
MuPDF
MuPDFdisplay list
pdf.js
Poppler

JPEG scan

HOPF
CoreGraphics
PDFKit
PDFium
MuPDF
MuPDFdisplay list
pdf.js
Poppler

1-bit scan

HOPF
CoreGraphics
PDFKit
PDFium
MuPDF
MuPDFdisplay list
pdf.js
Poppler

Vector

HOPF
CoreGraphics
PDFKit
PDFium
MuPDF
MuPDFdisplay list
pdf.js
Poppler
Energy to draw a page (mJ), Mac mini (M4)
RendererCompositeJPEG scan1-bit scanVector
HOPF5.05 CPU and about 0 GPU28.0 CPU and about 0.00861 GPU17.7 CPU and about 0 GPU41.9 CPU and about 0.00837 GPU
CoreGraphics16650.1551102
PDFKit16750.2558187
PDFium22.214211495.8
MuPDF34.013569.952.8
MuPDF, display list34.513270.141.0
pdf.js26.612827051.0
Poppler135193280139
Energy to draw a page (mJ), MacBook Pro (M5 Pro)
RendererCompositeJPEG scan1-bit scanVector
HOPF6.36 CPU and about 0 GPU38.9 CPU and about 0 GPU17.9 CPU and about 0.000867 GPU52.4 CPU and about 0 GPU
CoreGraphics17657.0572107
PDFKit17657.1581195
PDFium23.417114294.2
MuPDF41.614975.452.1
MuPDF, display list41.815375.340.6
pdf.js28.713629753.3
Poppler143205286152
Each type is one document's pages, drawn in turn for 20 s. CPU energy of the process; HOPF's GPU energy is approximate. Mac mini (M4), macOS 27.2, November 2026.

On extreme vector stress pages tested on MacBook Pro (40,000 0.05 pt lines drawn 8000 px wide, a 250,000-segment path, and 3,000 dashed 0.3 pt lines), CoreGraphics failed to finish any of the three within its 90 s timeout.

Byte for byte

Across all 491 benchmark pages, HOPF rendered byte-for-byte identical output between every pair of devices we tested: iPad Pro (M4), Mac mini (M4), and MacBook Pro (M5 Pro). Across every page and every device, the App's CPU drawer, the on-demand GPU path, and the pure software CPU reference also produce the exact same bytes as one another, while Apple's CoreGraphics and PDFKit differed between every device pair.

That invariance comes from the integer rule. Both HOPF's CPU compositor (every value a whole integer from 0 to 255) and its GPU compute kernels execute pixel math with zero floating-point values, leaving zero rounding latitude between processor generations. On CPU geometry setup steps, calculations restrict themselves strictly to addition, subtraction, multiplication, division, and square root, the five operations IEEE 754 requires to be correctly rounded, with fused multiply-add disabled. System math functions that approximate results (sine, cosine, power) are never called; JPEG cosine tables are hardcoded constants, and stroke joins compute purely from square roots. Automated build checks scan both rendering paths, failing on any disallowed floating-point or transcendental call.

The window rule makes output invariant to the drawn region. A viewport window selects which pixels execute without ever altering how they are computed: transforms remain page-global, rows and columns snap to integer pixels, resampling weights derive strictly from page coordinates, and edges left of a window propagate exact accumulated coverage into its first column. An isolated 512 px tile therefore matches the exact byte slice of a full-page render, eliminating tile seams with zero full-page checks.

Thread scheduling cannot leak into the pixels either. On the CPU, horizontal row bands distribute to worker threads while each pixel folds covering stamps in exact operation order regardless of thread timing, and parallel coverage workers write straight into fixed operation slots. Scanline segments maintain a strict total order that resolves all start, end, and swap events at a height before deciding any segment's fill role. On the GPU path, dedicated per-pixel threads obey the exact same draw sequence with a single commutative bitwise AND.

To verify every execution tier against a pure software baseline, HOPF includes a single-threaded CPU reference path sharing exact definitions, coverage rules, and weight tables. Across all 1,896 pages of our 90-score library, the App drawer, GPU kernels, and CPU reference produce identical hashes, and a targeted cross-check spanning 905 vector and composite pages across 11,510 viewport renders recorded zero differences between CPU and GPU execution. Inside the iPad app, 14,400 GPU and CPU draws matched 100% byte-for-byte; x86_64 and arm64 builds agree identically (where CoreGraphics diverges on 276 pages between architectures); Debug and Release builds match; iOS 17.0, 18.0, and 27.0 simulators agree with macOS; and isolated 512 px tiles match slices cropped from full-page renders.

The table below reports pairwise byte matches across all three devices. HOPF matched 491 of 491 pages on every pair, whereas CoreGraphics and PDFKit matched 432 between the two Macs, 329 between iPad Pro and Mac mini, and 271 between iPad Pro and MacBook Pro.

The same bytes across devices

RendererMacBook Pro and Mac miniMacBook Pro and iPad ProMac mini and iPad Pro
Across devices
HOPF491 of 491491 of 491491 of 491
HOPF, CPU reference491 of 491Not run on the iPadNot run on the iPad
CoreGraphics432 of 491271 of 491329 of 491
PDFKit432 of 491271 of 491329 of 491
PDFium491 of 491328 of 328 grey pages only328 of 328 grey pages only
MuPDF491 of 491Not run on the iPadNot run on the iPad
MuPDF, display list491 of 491Not run on the iPadNot run on the iPad
pdf.js491 of 491Not run on the iPadNot run on the iPad
Poppler491 of 491Not run on the iPadNot run on the iPad
On one device, the GPU against the CPU reference
HOPF491 of 491 on the MacBook Pro
Pages drawn to the same bytes on both devices of a pair, of 491 pages from 90 documents. PDFium's color pages were hashed in another channel order on the iPad, so its iPad pairs compare grey pages only. November 2026.

Bit-exact determinism streamlines both verification and rendering across Apple Silicon. Zoomed tiles stitch seamlessly with zero cross-checks against whole pages, and every renderer change produces an exact page-level byte diff, letting us verify that a fix changes only what it was meant to change.

Correct on every page

HOPF matches multi-renderer visual consensus more closely than any competing PDF renderer tested, finishing the cross-renderer suite with zero crashes, zero hangs, and zero unrendered pages.

We treat the PDF specification, ISO 32000-1, as ground truth and other renderers as independent cross-checks. Where the specification defines page semantics, HOPF Core follows it faithfully; where it leaves rasterization to each implementation, HOPF Core specifies exact pixel-area coverage and locks down every rounding rule. Meanwhile, our Quartz-compatible profile matched Quartz byte for byte across every tested class of 1,000 seeded random cases (rectangle fills, tiny rectangles, clips, triangles, rotation and scale, color spaces, and transparency).

Across 1,968 half-resolution pages (the 90-score library plus four copies), HOPF's mean pixel difference measured 1.89 from MuPDF and 2.11 from Quartz, closer to each than they are to one another (2.74), alongside 2.87 from Ghostscript and 8.02 from Poppler. On targeted conformance suites covering decode arrays, hidden layers, forms, and optional-content images, HOPF agreed with MuPDF, Ghostscript, and Poppler where Quartz alone diverged; CMYK conversion follows ISO 32000-1 §10.3.5. Across the 1,089-PDF pdf.js suite, HOPF recorded zero crashes or hangs and decoded 17,026 of 17,227 streams byte-identical to MuPDF. Exported as vector PDFs and read back, 354 conformance PDFs and 13 tutorial PDFs produced zero differences.

The chart below compares each renderer's 491 outputs on MacBook Pro at half resolution against the per-pixel median of the five other renderer families. HOPF produced the fewest visibly divergent pages, just 69 of 491 (more than 1% of pixels differing by over 32 grey levels), with zero divergent pages across all 85 JPEG scans and all 111 1-bit scans. Its median mean difference was also the lowest at 0.579 on a 0 to 255 scale, ahead of pdf.js (102 pages, 1.05), MuPDF and its display list (117, 0.784), PDFium (187, 0.851), PDFKit (204, 1.33), CoreGraphics (210, 1.33), and Poppler (426, 4.42).

Agreement with the other renderers

HOPF
pdf.js
MuPDF
MuPDFdisplay list
PDFium
PDFKit
CoreGraphics
Poppler
A page is visibly different when more than 1% of it, at half resolution, is more than 32 grey levels from the per-pixel median of the five other renderer families. MacBook Pro (M5 Pro), macOS 27.0, November 2026.

Continue reading

View all