#Performance
Local Node benchmark on five sample PDFs, first page rendered at scale 2 with text extraction and PNG encoding included.
#Snapshot
- Form: previous stack
95.4 ms / 174.9 MB / 114,930 B; ClawPDF38.7 ms / 129.4 MB / 100,629 B. - Hello: previous stack
65.2 ms / 159.7 MB / 41,408 B; ClawPDF27.2 ms / 124.1 MB / 47,106 B. - Scientific: previous stack
176.9 ms / 202.0 MB / 608,807 B; ClawPDF66.0 ms / 137.8 MB / 321,122 B. - Magazine: previous stack
519.4 ms / 312.0 MB / 1,616,318 B; ClawPDF255.9 ms / 179.5 MB / 1,930,947 B. - Checkmark: previous stack
2.6 ms / 128.1 MB / 589 B; ClawPDF1.1 ms / 83.2 MB / 498 B.
The largest win comes from avoiding the previous JavaScript plus native canvas stack in the fallback path. Magazine-style pages can still produce larger PNGs because PNG compression choices differ between renderers.
#WASM Size Note
A local Emscripten relink with -Oz reduced the WASM by about 80 KB, roughly 2 percent, but was slower on render-heavy samples. The current vendored wrapper keeps the upstream -O2 build.