How much the PDF Compressor saves on ten typical kinds of PDF, at each of its settings, how long it took, what did the work and how the result looks up close. The test files are generated, not collected: synthetic scans, photos and documents built from a fixed seed so anyone can rebuild exactly the same set. The benchmark compares the tool's own settings with each other. No other compressor, desktop tool or online service was run, so nothing here says how it compares with them.
Run on 2026-10-31 · Chromium 152 (embedded in a desktop app) on Windows · 32 logical cores, 4 image workers · JPEG encoder: mozjpeg · code at 59de7ac on main with uncommitted changes · seed 20261031
Method
The test set
Ten PDFs, 9.16 MB in all, drawn by a small generator in the site's repository. Scanned pages are rendered at 300 dpi with Liberation Sans through an anti-aliased rasteriser, then given what a scanner adds: slight blur, paper tone, sensor noise and, where noted, uneven lighting, skew and dust. They are stored as JPEG with standard (libjpeg-style) quantisation tables at quality 85, as scanners usually write them. The photos are procedural landscapes with fine texture and grain, not camera images.
file
what it is
pages
size
(a) Clean greyscale text scan
Two A4 pages of typed text scanned at 300 dpi in greyscale, stored as single-channel JPEG (quality 85).
2
1.51 MB
(b) Uneven, skewed colour scan
One A4 page scanned in colour at 300 dpi: warm paper, lighting falling off towards one corner, 0.6° skew, sensor noise and dust.
1
1.51 MB
(c) Letter with faint pencil notes
A typed letter at 300 dpi in greyscale with light pencil handwriting, a circled word and an arrow in the margin.
1
722.8 KB
(d) Colour letter with logo on tinted paper
A business letter on cream paper with a teal and red logo, a coloured rule and a blue signature, scanned in colour at 300 dpi.
1
1.02 MB
(e) Phone photo page
A 12-megapixel (3024 × 4032) photo-like JPEG at quality 92 placed on one A4 page, about 366 dpi.
1
2.18 MB
(f) Image-heavy brochure page
One A4 page with a wide header photo and four smaller photos (all JPEG, quality 90, drawn at 330–520 dpi) and real text in Helvetica.
1
1.66 MB
(g) Office export with a full font
Two pages of real text in Liberation Sans, embedded whole (139 KB TrueType), plus a 900 × 540 bar chart stored losslessly (flate).
2
104.8 KB
(h) Merged document (3 × g)
Three copies of the office export merged into one six-page file, each with its own copy of the font and the chart.
6
313.2 KB
(i) CAD-like vector drawing
An A3 sheet of vector line work — a gear, hatching, bolt circles, dimensions and a title block — with no images, content already flate-compressed.
1
12.1 KB
(j) Text page with leftover junk
A one-page text document carrying editor private data (/PieceInfo), a page thumbnail, page and document XMP, an Info dictionary and an orphaned old image.
1
153.2 KB
The pipeline
Every file went through the real compressor code in a browser, served as static files with the same Content-Security-Policy as the live site: the same image workers, MozJPEG encoder, black-and-white (JBIG2 and CCITT G4) and text-layer (MRC) encoders, HarfBuzz font subsetting and qpdf structure pass that run when you press compress. A small test page that is not part of the site fed the files to it one after another. Each setting started from the original file with nothing cached, after one unrecorded warm-up run so that loading the WebAssembly modules is not counted. Times are wall-clock from reading the file to the finished copy on this one machine; they show relative cost, not what your computer will take.
The settings
lossless: structure only — images untouched.
balanced: images to 150 dpi, JPEG quality 75; black & white and text layers on auto.
strong: images to 110 dpi, JPEG quality 60; scans to 200 dpi black & white; black & white and text layers on auto.
balanced, JPEG only: images to 150 dpi, JPEG quality 75; black & white and text layers off.
All four use the tool's defaults otherwise: duplicate and junk removal, font subsetting and dropping thumbnails on; stripping document metadata, greyscale and the other opt-ins off. The fourth setting is balanced with black & white and text layers turned off, to show what those two modes add over plain JPEG.
What helped, and how quality is judged
"What helped" splits each saving the way the tool's review does. Images is old minus new image stream bytes. Duplicates and junk are the uncompressed size of the objects those stages removed, and fonts the font programs' size before and after subsetting, so they are estimates made before the final repack. Structure is whatever is left of the saving: qpdf's object streams and recompression, and removed thumbnails or metadata.
The quality verdict is the tool's own check on every changed image: SSIM between the original and the new copy at up to 512 pixels on the long edge, as a mean and a worst window. A black-and-white page is compared after stretching both to black ink on white paper, and text layers by rebuilding the page from the encoded layers. ✓ ok, ! check or ✗ bad is the worst verdict among the file's images. The check works on reduced copies and can miss damage to very small text, which is why the crops below matter.
Results
Output size and saving, per file and setting. The original is offered when nothing was saved.
file
original
lossless
balanced
strong
balanced, JPEG only
(a) Clean greyscale text scan
1.51 MB
1.51 MB 0%
63.3 KB −95.9%
43.1 KB −97.2%
354.6 KB −77.1%
(b) Uneven, skewed colour scan
1.51 MB
1.51 MB 0%
80.6 KB −94.8%
74.9 KB −95.1%
215.5 KB −86%
(c) Letter with faint pencil notes
722.8 KB
722.8 KB 0%
43.5 KB −94%
43.5 KB −94%
128.2 KB −82.3%
(d) Colour letter with logo on tinted paper
1.02 MB
1.02 MB 0%
62.4 KB −94%
56.6 KB −94.6%
155.2 KB −85.1%
(e) Phone photo page
2.18 MB
2.18 MB 0%
83.5 KB −96.3%
33.4 KB −98.5%
83.5 KB −96.3%
(f) Image-heavy brochure page
1.66 MB
1.66 MB 0%
83.3 KB −95.1%
36.1 KB −97.9%
83.3 KB −95.1%
(g) Office export with a full font
104.8 KB
34.0 KB −67.6%
34.0 KB −67.6%
34.0 KB −67.6%
34.0 KB −67.6%
(h) Merged document (3 × g)
313.2 KB
34.0 KB −89.1%
34.0 KB −89.1%
34.0 KB −89.1%
34.0 KB −89.1%
(i) CAD-like vector drawing
12.1 KB
12.0 KB −0.9%
12.0 KB −0.9%
12.0 KB −0.9%
12.0 KB −0.9%
(j) Text page with leftover junk
153.2 KB
5.1 KB −96.6%
5.1 KB −96.6%
5.1 KB −96.6%
5.1 KB −96.6%
Per file
(a) Clean greyscale text scan · 1.51 MB
Two A4 pages of typed text scanned at 300 dpi in greyscale, stored as single-channel JPEG (quality 85).
setting
output
saved
time
images
what helped
quality
lossless
1.51 MB
0%
27 ms
2 × skipped
nothing
—
balanced
63.3 KB
95.9%
1.2 s
2 × JBIG2
images 1.45 MB
✓ ok
strong
43.1 KB
97.2%
652 ms
2 × JBIG2
images 1.47 MB
✓ ok
balanced, JPEG only
354.6 KB
77.1%
226 ms
2 × JPEG
images 1.17 MB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 2480×3508 · 300 dpi
skipped
789.9 KB
—
—
lossless preset — images untouched
lossless
p.2 · 2480×3508 · 300 dpi
skipped
758.7 KB
—
—
lossless preset — images untouched
balanced
p.1 · 2480×3508 · 300 dpi
JBIG2 2480×3508
789.9 KB
32.1 KB
0.998 / 0.897 (ok)
black & white: bimodal page, few mid-tones
balanced
p.2 · 2480×3508 · 300 dpi
JBIG2 2480×3508
758.7 KB
29.9 KB
0.998 / 0.841 (ok)
black & white: bimodal page, few mid-tones
strong
p.1 · 2480×3508 · 300 dpi
JBIG2 1654×2339
789.9 KB
21.6 KB
0.996 / 0.784 (ok)
black & white: bimodal page, few mid-tones
strong
p.2 · 2480×3508 · 300 dpi
JBIG2 1654×2339
758.7 KB
20.1 KB
0.996 / 0.745 (ok)
black & white: bimodal page, few mid-tones
balanced, JPEG only
p.1 · 2480×3508 · 300 dpi
JPEG 1240×1754
789.9 KB
181.1 KB
0.998 / 0.967 (ok)
balanced, JPEG only
p.2 · 2480×3508 · 300 dpi
JPEG 1240×1754
758.7 KB
172.2 KB
0.998 / 0.972 (ok)
(b) Uneven, skewed colour scan · 1.51 MB
One A4 page scanned in colour at 300 dpi: warm paper, lighting falling off towards one corner, 0.6° skew, sensor noise and dust.
setting
output
saved
time
images
what helped
quality
lossless
1.51 MB
0%
19 ms
skipped
nothing
—
balanced
80.6 KB
94.8%
2.3 s
MRC
images 1.43 MB
✓ ok
strong
74.9 KB
95.1%
2.1 s
MRC
images 1.43 MB
✓ ok
balanced, JPEG only
215.5 KB
86%
208 ms
JPEG
images 1.30 MB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 2480×3508 · 300 dpi
skipped
1.51 MB
—
—
lossless preset — images untouched
balanced
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
1.51 MB
79.2 KB
0.990 / 0.935 (ok)
black & white: mixed: histogram not bimodal, continuous-tone areas · text layers: text layer: 3188 glyphs, 7.6 % ink, one ink colour
strong
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
1.51 MB
73.5 KB
0.989 / 0.901 (ok)
black & white: mixed: histogram not bimodal, continuous-tone areas · text layers: text layer: 3188 glyphs, 7.6 % ink, one ink colour
balanced, JPEG only
p.1 · 2480×3508 · 300 dpi
JPEG 1240×1754
1.51 MB
214.5 KB
0.995 / 0.979 (ok)
(c) Letter with faint pencil notes · 722.8 KB
A typed letter at 300 dpi in greyscale with light pencil handwriting, a circled word and an arrow in the margin.
setting
output
saved
time
images
what helped
quality
lossless
722.8 KB
0%
11 ms
skipped
nothing
—
balanced
43.5 KB
94%
2.4 s
MRC
images 679.4 KB
! check (1 flagged)
strong
43.5 KB
94%
4.5 s
MRC
images 679.4 KB
! check (1 flagged)
balanced, JPEG only
128.2 KB
82.3%
185 ms
JPEG
images 594.6 KB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 2480×3508 · 300 dpi
skipped
721.8 KB
—
—
lossless preset — images untouched
balanced
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
721.8 KB
42.0 KB
0.994 / 0.924 (check)
black & white: black & white would lose faint marks (worst area 0.08) — JPEG kept · text layers: text layer: 1610 glyphs, 4.0 % ink, one ink colour
strong
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
721.8 KB
42.0 KB
0.994 / 0.924 (check)
black & white: black & white would lose faint marks (worst area 0.08) — JPEG kept · text layers: text layer: 1610 glyphs, 4.0 % ink, one ink colour · balanced tier (background as on balanced) — strong tier: text layers flagged "check" and saves under half — JPEG kept: faint marks on page 1 (pencil, light handwriting) are blurred in the low-resolution background — compare at 200 %
balanced, JPEG only
p.1 · 2480×3508 · 300 dpi
JPEG 1240×1754
721.8 KB
127.2 KB
0.997 / 0.982 (ok)
(d) Colour letter with logo on tinted paper · 1.02 MB
A business letter on cream paper with a teal and red logo, a coloured rule and a blue signature, scanned in colour at 300 dpi.
setting
output
saved
time
images
what helped
quality
lossless
1.02 MB
0%
12 ms
skipped
nothing
—
balanced
62.4 KB
94%
2.2 s
MRC
images 982.0 KB
✓ ok
strong
56.6 KB
94.6%
2.1 s
MRC
images 987.8 KB
✓ ok
balanced, JPEG only
155.2 KB
85.1%
176 ms
JPEG
images 889.2 KB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 2480×3508 · 300 dpi
skipped
1.02 MB
—
—
lossless preset — images untouched
balanced
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
1.02 MB
60.8 KB
0.992 / 0.916 (ok)
black & white: mixed: colour content · text layers: text layer: 1827 glyphs, 5.0 % ink, several ink colours
strong
p.1 · 2480×3508 · 300 dpi
MRC 2480×3508
1.02 MB
54.9 KB
0.992 / 0.784 (ok)
black & white: mixed: colour content · text layers: text layer: 1827 glyphs, 5.0 % ink, several ink colours
balanced, JPEG only
p.1 · 2480×3508 · 300 dpi
JPEG 1240×1754
1.02 MB
154.2 KB
0.997 / 0.976 (ok)
(e) Phone photo page · 2.18 MB
A 12-megapixel (3024 × 4032) photo-like JPEG at quality 92 placed on one A4 page, about 366 dpi.
setting
output
saved
time
images
what helped
quality
lossless
2.18 MB
0%
19 ms
skipped
nothing
—
balanced
83.5 KB
96.3%
739 ms
JPEG
images 2.10 MB
✓ ok
strong
33.4 KB
98.5%
598 ms
JPEG
images 2.15 MB
✓ ok
balanced, JPEG only
83.5 KB
96.3%
201 ms
JPEG
images 2.10 MB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 3024×4032 · 366 dpi
skipped
2.18 MB
—
—
lossless preset — images untouched
balanced
p.1 · 3024×4032 · 366 dpi
JPEG 1240×1654
2.18 MB
82.5 KB
0.994 / 0.961 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 3024×4032 · 366 dpi
JPEG 909×1213
2.18 MB
32.4 KB
0.983 / 0.897 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced, JPEG only
p.1 · 3024×4032 · 366 dpi
JPEG 1240×1654
2.18 MB
82.5 KB
0.994 / 0.961 (ok)
(f) Image-heavy brochure page · 1.66 MB
One A4 page with a wide header photo and four smaller photos (all JPEG, quality 90, drawn at 330–520 dpi) and real text in Helvetica.
setting
output
saved
time
images
what helped
quality
lossless
1.66 MB
0%
19 ms
5 × skipped
structure 0.6 KB
—
balanced
83.3 KB
95.1%
366 ms
5 × JPEG
images 1.58 MB, structure 0.7 KB
✓ ok
strong
36.1 KB
97.9%
299 ms
5 × JPEG
images 1.62 MB, structure 0.7 KB
! check (2 flagged)
balanced, JPEG only
83.3 KB
95.1%
124 ms
5 × JPEG
images 1.58 MB, structure 0.7 KB
✓ ok
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 3000×1200 · 363 dpi
skipped
590.2 KB
—
—
lossless preset — images untouched
lossless
p.1 · 1500×1000 · 431 dpi
skipped
275.7 KB
—
—
lossless preset — images untouched
lossless
p.1 · 1500×1000 · 431 dpi
skipped
270.7 KB
—
—
lossless preset — images untouched
lossless
p.1 · 1500×1000 · 431 dpi
skipped
279.2 KB
—
—
lossless preset — images untouched
lossless
p.1 · 1500×1000 · 431 dpi
skipped
281.6 KB
—
—
lossless preset — images untouched
balanced
p.1 · 3000×1200 · 363 dpi
JPEG 1240×496
590.2 KB
29.8 KB
0.990 / 0.854 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
275.7 KB
12.5 KB
0.956 / 0.704 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
270.7 KB
12.3 KB
0.956 / 0.651 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
279.2 KB
12.6 KB
0.956 / 0.609 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
281.6 KB
13.3 KB
0.956 / 0.704 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 3000×1200 · 363 dpi
JPEG 909×364
590.2 KB
12.6 KB
0.974 / 0.731 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 1500×1000 · 431 dpi
JPEG 383×255
275.7 KB
5.2 KB
0.931 / 0.635 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 1500×1000 · 431 dpi
JPEG 383×255
270.7 KB
5.0 KB
0.931 / 0.637 (ok)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 1500×1000 · 431 dpi
JPEG 383×255
279.2 KB
5.1 KB
0.930 / 0.566 (check)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
strong
p.1 · 1500×1000 · 431 dpi
JPEG 383×255
281.6 KB
5.5 KB
0.931 / 0.536 (check)
black & white: photo: colourful · text layers: hardly any text (0.0 % ink)
balanced, JPEG only
p.1 · 3000×1200 · 363 dpi
JPEG 1240×496
590.2 KB
29.8 KB
0.990 / 0.854 (ok)
balanced, JPEG only
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
275.7 KB
12.5 KB
0.956 / 0.704 (ok)
balanced, JPEG only
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
270.7 KB
12.3 KB
0.956 / 0.651 (ok)
balanced, JPEG only
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
279.2 KB
12.6 KB
0.956 / 0.609 (ok)
balanced, JPEG only
p.1 · 1500×1000 · 431 dpi
JPEG 522×348
281.6 KB
13.3 KB
0.956 / 0.704 (ok)
(g) Office export with a full font · 104.8 KB
Two pages of real text in Liberation Sans, embedded whole (139 KB TrueType), plus a 900 × 540 bar chart stored losslessly (flate).
setting
output
saved
time
images
what helped
quality
lossless
34.0 KB
67.6%
65 ms
skipped
fonts 68.6 KB, structure 2.2 KB
—
balanced
34.0 KB
67.6%
134 ms
kept
fonts 68.6 KB, structure 2.2 KB
—
strong
34.0 KB
67.6%
120 ms
kept
fonts 68.6 KB, structure 2.2 KB
—
balanced, JPEG only
34.0 KB
67.6%
93 ms
kept
fonts 68.6 KB, structure 2.2 KB
—
image by image
setting
image
action
before
after
SSIM mean / worst
reason
lossless
p.1 · 900×540 · 216 dpi
skipped
12.8 KB
—
—
lossless preset — images untouched
balanced
p.1 · 900×540 · 216 dpi
kept
12.8 KB
—
—
re-encoded copy was not smaller enough — original kept · text layers: not sure it is text: only 37 text-like shapes found
strong
p.1 · 900×540 · 216 dpi
kept
12.8 KB
—
—
flat graphic (chart, screenshot or diagram): JPEG would blur its edges — original kept · text layers: not sure it is text: only 37 text-like shapes found
balanced, JPEG only
p.1 · 900×540 · 216 dpi
kept
12.8 KB
—
—
re-encoded copy was not smaller enough — original kept
re-encoded copy was not smaller enough — original kept · text layers: not sure it is text: only 37 text-like shapes found
strong
p.1,3,5 · 900×540 · 216 dpi
kept
12.8 KB
—
—
flat graphic (chart, screenshot or diagram): JPEG would blur its edges — original kept · text layers: not sure it is text: only 37 text-like shapes found
balanced, JPEG only
p.1,3,5 · 900×540 · 216 dpi
kept
12.8 KB
—
—
re-encoded copy was not smaller enough — original kept
An A3 sheet of vector line work — a gear, hatching, bolt circles, dimensions and a title block — with no images, content already flate-compressed.
setting
output
saved
time
images
what helped
quality
lossless
12.0 KB
0.9%
8 ms
no images
nothing
—
balanced
12.0 KB
0.9%
7 ms
no images
nothing
—
strong
12.0 KB
0.9%
6 ms
no images
nothing
—
balanced, JPEG only
12.0 KB
0.9%
11 ms
no images
nothing
—
(j) Text page with leftover junk · 153.2 KB
A one-page text document carrying editor private data (/PieceInfo), a page thumbnail, page and document XMP, an Info dictionary and an orphaned old image.
Regions of the rendered pages at 200% (pdf.js, 2.67 pixels per point), saved as lossless WebP so the crops show exactly what was rendered. Each row is the same region of the original and of the compressed copies.
Scans are where the big savings are, and most of it comes from the black-and-white and text-layer modes: the clean scan (a) went from 1.51 MB to 354.6 KB as plain JPEG and to 63.3 KB as 2 × JBIG2; the colour letter (d) to 155.2 KB as JPEG and 62.4 KB as text layers.
Black and white refused the pencil letter (c), as it should: the tool measured that the faint notes would vanish. Text layers took the page instead (43.5 KB, quality check): the pencil survives in the background layer, but blurred and lighter than in the original (see the crop), which the faint-mark check reports. The copy is still used because it is far smaller than the JPEG, and the review flags it with the JPEG one click away. On strong the coarser background smears the pencil further, and that flagged copy does not save enough over strong's smaller JPEG to be used. The tool then retries the page at balanced's scan settings and uses that copy when balanced would and it is smaller than strong's JPEG, as here (43.5 KB): strong is never larger than balanced because of its coarser scan tier.
The uneven scan (b) did not go black and white either: the classifier refused it as "histogram not bimodal, continuous-tone areas", most likely because of the lighting falloff and noise, and text layers took it (80.6 KB). So in this set the local (Sauvola) threshold for uneven pages was never used.
On scans, strong goes further than balanced: black and white is written at up to 200 dpi instead of 300 (the clean scan (a): 63.3 KB on balanced, 43.1 KB on strong), and the text-layer background is one step coarser at a lower JPEG quality (the colour letter (d): 62.4 KB and 56.6 KB). The text stencil keeps its full resolution, and both go through the same quality checks.
The merged file (h) shrinks by 89.1% without touching an image: duplicate removal finds the three copies of the font and chart (207.5 KB), and subsetting cuts the remaining font.
Lossless leaves image-only files almost exactly as they were (the clean scan saved 278 bytes): their bytes are all in JPEG streams, which it never re-encodes.
Where it does not help
Vector drawings. The CAD sheet (i) has no images and its content is already flate-compressed: every setting saved 0.9% (115 bytes). Pages are never turned into pictures, so line work, hatching and vector text stay exactly as they were, and stay the same size.
Text-only PDFs without embedded fonts. A document that uses the standard fonts and has compressed content has nothing large to remove. The office export (g) saved 67.6% only because it embedded a whole font; without that it would be in the same place as the drawing.
Already optimised files. The tool offers the original unchanged when its result is not smaller. Running a compressed copy through again gains little or nothing, because the images are already at the target resolution and the structure is already packed.
Flat graphics as images. The chart in (g) is stored losslessly and is mostly flat colour with sharp edges, which JPEG smears. The tool recognises it as a flat graphic and keeps the exact original under every setting (34.0 KB on balanced, 34.0 KB on strong; a JPEG would be used only if it were judged ok and at most half the size), so the whole saving on this file comes from the font.
A synthetic set. These files are generated. Real scans have more varied paper, ink and damage, and real photos more detail than these procedural ones, so expect your own numbers to differ. The text-layer and black-and-white thresholds were themselves tuned on synthetic scans.
Rebuild it
The generator and the test harness are in the site's repository under scripts/bench/. node --experimental-strip-types scripts/bench/pdf-compress-generate.ts rebuilds the ten files from seed 20261031, and node scripts/bench/pdf-compress-bench.mjs reruns this benchmark in a browser and rewrites the data behind this page.