The smallest passing file against quality 80
Before the search, every raster was one encode at quality 80. The search sweep built every raster a default set contains (the ICO payload, the apple-touch-icon and the 192 and 512 px icons) for 23 test fixtures, 80 openly licensed icons from four Iconify sets, and 39 private marks that are reported only as totals. It tried all 26 candidates on each and kept the smallest that passes the accuracy bar, then replayed the binary search the default effort runs. Bytes, measured on 8 November 2026 with @napi-rs/image 1.15.0 and SVGO 4.1.0:
| Corpus | Rasters | Quality 80 | Every candidate | Binary search |
|---|---|---|---|---|
| Test fixtures | 92 | 129,398 | 77,505 (−40.1%) | 77,630 (−40.0%) |
| Open icons | 320 | 829,568 | 719,503 (−13.3%) | 720,967 (−13.1%) |
| Private marks | 156 | 183,489 | 110,971 (−39.5%) | 111,249 (−39.4%) |
| All | 568 | 1,142,455 | 907,979 (−20.5%) | 909,846 (−20.4%) |
On the 502 rasters where quality 80 already passed, the search can only save, and saved 40.5%, 23.1% and 39.5% on the three corpora. Quality 80 missed the bar on 66 rasters. 25 of those have a passing candidate and now take it, at 3.6% more bytes on those rasters (179,216 to 185,587 B); 41 have none and keep their bytes.
The binary search makes 7 to 9 encodes per raster, median 7, against 26, and lands within 1,867 B (0.2%) of trying them all. Per 512 px raster, encoding and scoring take a median 779 ms against 2,866 ms for every candidate and 91 ms for one quality-80 encode. The edge clause of the bar costs 0.5% over pixel distance alone, all of it on the 27 rasters where it refuses the smaller file. See the search sweep report.
The byte manifest in CI
CI rebuilds 11 fixtures at the default effort and checks every file’s bytes and hash. Their 44 rasters fell from 70,800 B at quality 80 to 41,904 B with the search (−40.8%), from −1.2% on tiles to −53.4% on smil. None grew, and every one passes both clauses of the bar against the suite’s independent reference: worst pixel share 0.996%, worst edge error 1.289. Read decision 29 for the full account.
Build time by effort
Wall clock for favseed on the command line, one default set, interleaved repetitions, median, on an 8-core, 16-thread Ryzen 7 7840U, load average about 2. The default and max figures below run the search's two walks at once (decision 30):
| Mark | fast | default | max |
|---|---|---|---|
general | 0.40 s | 1.98 s | 7.50 s |
gradient | 0.60 s | 4.07 s | 15.73 s |
heavy | 0.38 s | 2.11 s | 7.24 s |
On general and gradient, max writes 18,670 raster bytes against the default’s 18,780 (−0.6%) in 3.8 to 3.9 times the time. The default takes that 0.6% for a build of seconds rather than tens of seconds; --effort max is there when bytes matter more. Read decision 30 for the two-walk search and its numbers.
Zopfli iterations
The finish alone, over the default encode of every 192 and 512 px render of the fixtures. 15 iterations is the default effort’s count and 120 the maximum’s. Seconds are one pass each and move between runs; the bytes do not. Generated on 8 November 2026 with Node 26.13.0.
| Iterations | Bytes | Against 15 | Seconds |
|---|---|---|---|
| 15 | 57,159 | 0.00% | 28.0 |
| 30 | 57,112 | −0.08% | 42.9 |
| 60 | 57,106 | −0.09% | 72.9 |
| 120 | 57,066 | −0.16% | 134.0 |
| 240 | 57,046 | −0.20% | 255.7 |
Zopfli is lossless: in a separate sweep all 792 measurements kept their decoded pixels. Sources: the generated benchmarks and the iteration sweep.
A 48 px ICO instead of 32 px
The same 20 fixtures with one 32 px or one 48 px entry, measured on 1 November 2026. Every other file was byte-identical between the two.
| Across 20 fixtures | 32 px | 48 px |
|---|---|---|
| ICO bytes | 7,537 | 9,483 |
| Complete set bytes | 127,260 | 129,206 |
| Worst ICO error against the source | 1.660% | 1.215% |
| Marks over 1% | 4 | 2 |
About 97 bytes a mark buys a lower worst error. The two marks still over 1% are the small-grid fixtures, the suite’s accepted exception. The error is measured at the ICO’s own resolution, not after a browser scales it down to 16 or 32 px. See the ICO report.
Against Vite PWA assets-generator
Version 2.0.0 with Sharp 0.35.5. To compare the encoders and not the sets, both received the same already-placed, unquantised pixels for four fixtures: a 48 px ICO and the 180, 192 and 512 px PNGs of each, 16 files.
| Encoder | Bytes | Worst PNG error | Worst ICO error |
|---|---|---|---|
| Vite PWA default, quality 60 | 36,906 | 5.900% | 3.429% |
| favseed, quality 80 (now effort fast) | 37,082 | 0.055% | 0% |
| Vite PWA, quality 100 | 53,888 | 0.065% | 0% |
favseed’s quality-80 set is 176 bytes (0.5%) larger than Vite’s default, with lower measured error, and 31.2% smaller than Vite at quality 100. Vite is smaller on two of the four marks and favseed on the other two. Vite’s encoder is faster: 381 ms against 905 ms for these files. Quality numbers mean different things in the two encoders, and the default effort, which came later, was not part of this comparison. The report has the comparison and method.
Reproduce
From a checkout, after pnpm install. The search sweep fetches its open corpus first, and reads private marks only from a directory you name.
node bench/bench.mjs --write node bench/bench.mjs ico-size node bench/corpus/fetch.mjs node bench/search.mjs