{
  "title": "PNG transparency & format benchmark 2026",
  "runDate": "2026-11-30",
  "environment": {
    "node": "v22.20.0",
    "sharp": "0.35.6",
    "libvips": "8.18.8",
    "libpng": "1.6.59",
    "libwebp": "1.6.0",
    "libheif": "1.23.7",
    "libaom": "3.15.3",
    "simpleIcons": "16.39.0",
    "platform": "darwin-arm64",
    "avifSupported": true
  },
  "corpus": {
    "source": "simple-icons (CC0 1.0 SVG brand icons)",
    "iconsInPackage": 3476,
    "iconsBenchmarked": 3476,
    "iconsSkipped": 0,
    "sampling": "None: every icon in the package, sorted by slug."
  },
  "settings": {
    "contentPx": 512,
    "paddingsPct": [
      0,
      10,
      25,
      50,
      100
    ],
    "paddingDefinition": "Percent of the 512 px content size added as transparent canvas on each of the four sides (canvas = 512 + 2 x round(512 x p/100)).",
    "dimensionsPx": [
      256,
      512,
      1024
    ],
    "svgRendering": "SVG root given width/height = size and fill #000000, rasterised by librsvg via sharp at density 72, straight to raw RGBA.",
    "padMethod": "sharp .extend() with fully transparent background rgba(0,0,0,0).",
    "trimMethod": "Own alpha bounding box (alpha > 0) + crop; cross-checked against sharp .trim({ threshold: 0 }).",
    "encoders": {
      "png_default": {
        "label": "PNG (sharp defaults)",
        "options": {}
      },
      "png_palette": {
        "label": "PNG palette (8-bit indexed, compressionLevel 9)",
        "options": {
          "palette": true,
          "compressionLevel": 9
        }
      },
      "webp_lossless": {
        "label": "WebP lossless",
        "options": {
          "lossless": true
        }
      },
      "webp_q80": {
        "label": "WebP lossy q80",
        "options": {
          "quality": 80
        }
      },
      "avif_q50": {
        "label": "AVIF q50",
        "options": {
          "quality": 50
        }
      }
    },
    "determinism": "No randomness. Icons processed in slug order. All other encoder options are sharp/libvips defaults of the pinned version."
  },
  "rowsInCsv": 52140,
  "padding": {
    "0": {
      "canvasPx": 512,
      "pixelOverheadPct": 0,
      "png_default": {
        "bytes": {
          "n": 3476,
          "min": 2074,
          "median": 12545,
          "mean": 13264,
          "p90": 19072,
          "p99": 30615,
          "max": 65314
        },
        "overheadPct": {
          "n": 3476,
          "min": 0,
          "median": 0,
          "mean": 0,
          "p90": 0,
          "p99": 0,
          "max": 0
        }
      },
      "png_palette": {
        "bytes": {
          "n": 3476,
          "min": 836,
          "median": 7856,
          "mean": 8481,
          "p90": 13130,
          "p99": 22219,
          "max": 49249
        },
        "overheadPct": {
          "n": 3476,
          "min": 0,
          "median": 0,
          "mean": 0,
          "p90": 0,
          "p99": 0,
          "max": 0
        }
      }
    },
    "10": {
      "canvasPx": 614,
      "pixelOverheadPct": 43.81,
      "png_default": {
        "bytes": {
          "n": 3476,
          "min": 2489,
          "median": 13332,
          "mean": 14083,
          "p90": 20218,
          "p99": 32041,
          "max": 67704
        },
        "overheadPct": {
          "n": 3476,
          "min": -7.98,
          "median": 5.8,
          "mean": 6.44,
          "p90": 9.42,
          "p99": 16.76,
          "max": 48.59
        }
      },
      "png_palette": {
        "bytes": {
          "n": 3476,
          "min": 986,
          "median": 8183,
          "mean": 8823,
          "p90": 13586,
          "p99": 22963,
          "max": 50384
        },
        "overheadPct": {
          "n": 3476,
          "min": -7.24,
          "median": 3.86,
          "mean": 4.59,
          "p90": 6.42,
          "p99": 21.61,
          "max": 31.39
        }
      }
    },
    "25": {
      "canvasPx": 768,
      "pixelOverheadPct": 125,
      "png_default": {
        "bytes": {
          "n": 3476,
          "min": 3323,
          "median": 14307,
          "mean": 15151,
          "p90": 21517,
          "p99": 33869,
          "max": 70778
        },
        "overheadPct": {
          "n": 3476,
          "min": 2.44,
          "median": 13.71,
          "mean": 15.24,
          "p90": 20.61,
          "p99": 33.67,
          "max": 62.73
        }
      },
      "png_palette": {
        "bytes": {
          "n": 3476,
          "min": 1171,
          "median": 8644,
          "mean": 9331,
          "p90": 14259,
          "p99": 23839,
          "max": 51872
        },
        "overheadPct": {
          "n": 3476,
          "min": -0.92,
          "median": 9.49,
          "mean": 11.58,
          "p90": 15.8,
          "p99": 53.91,
          "max": 86.69
        }
      }
    },
    "50": {
      "canvasPx": 1024,
      "pixelOverheadPct": 300,
      "png_default": {
        "bytes": {
          "n": 3476,
          "min": 5162,
          "median": 16319,
          "mean": 17211,
          "p90": 23757,
          "p99": 36684,
          "max": 75137
        },
        "overheadPct": {
          "n": 3476,
          "min": 14.86,
          "median": 29.84,
          "mean": 32.71,
          "p90": 45.22,
          "p99": 73.55,
          "max": 148.89
        }
      },
      "png_palette": {
        "bytes": {
          "n": 3476,
          "min": 1670,
          "median": 9318,
          "mean": 10046,
          "p90": 15223,
          "p99": 25230,
          "max": 54087
        },
        "overheadPct": {
          "n": 3476,
          "min": 9.65,
          "median": 17.76,
          "mean": 21.59,
          "p90": 28.49,
          "p99": 99.23,
          "max": 150.65
        }
      }
    },
    "100": {
      "canvasPx": 1536,
      "pixelOverheadPct": 800,
      "png_default": {
        "bytes": {
          "n": 3476,
          "min": 10255,
          "median": 21531,
          "mean": 22469,
          "p90": 29108,
          "p99": 42150,
          "max": 82185
        },
        "overheadPct": {
          "n": 3476,
          "min": 25.14,
          "median": 71.5,
          "mean": 78.11,
          "p90": 112.26,
          "p99": 181.7,
          "max": 394.46
        }
      },
      "png_palette": {
        "bytes": {
          "n": 3476,
          "min": 2942,
          "median": 10705,
          "mean": 11490,
          "p90": 16885,
          "p99": 27342,
          "max": 57289
        },
        "overheadPct": {
          "n": 3476,
          "min": 16.21,
          "median": 35.62,
          "mean": 42.82,
          "p90": 57.81,
          "p99": 193.05,
          "max": 300.71
        }
      }
    }
  },
  "trim": {
    "icons": 3476,
    "roundTripIdenticalPixels": {
      "10": 3476,
      "25": 3476,
      "50": 3476,
      "100": 3476
    },
    "roundTripBytesEqualToTrimmed0": {
      "10": 3476,
      "25": 3476,
      "50": 3476,
      "100": 3476
    },
    "sharpTrimMatchesAlphaBBox": {
      "padding0": 3273,
      "padding100": 3206
    },
    "trimmedVs0pctBytes": {
      "n": 3476,
      "min": -40.5,
      "median": -2.07,
      "mean": -3.93,
      "p90": 0,
      "p99": 0,
      "max": 10.42
    },
    "trimmedBBoxFractionOfContent": {
      "n": 3476,
      "min": 7.42,
      "median": 88.28,
      "mean": 80.77,
      "p90": 100,
      "p99": 100,
      "max": 100
    }
  },
  "formats": {
    "png_default": {
      "label": "PNG (sharp defaults)",
      "options": {},
      "bytes": {
        "n": 3476,
        "min": 2074,
        "median": 12545,
        "mean": 13264,
        "p90": 19072,
        "p99": 30615,
        "max": 65314
      },
      "vsPngDefaultPct": {
        "n": 3476,
        "min": 0,
        "median": 0,
        "mean": 0,
        "p90": 0,
        "p99": 0,
        "max": 0
      },
      "smallerThanPngDefaultShare": 0,
      "alphaPreservedShare": 100,
      "pixelExactShare": 100,
      "totalBytes": 46105214
    },
    "png_palette": {
      "label": "PNG palette (8-bit indexed, compressionLevel 9)",
      "options": {
        "palette": true,
        "compressionLevel": 9
      },
      "bytes": {
        "n": 3476,
        "min": 836,
        "median": 7856,
        "mean": 8481,
        "p90": 13130,
        "p99": 22219,
        "max": 49249
      },
      "vsPngDefaultPct": {
        "n": 3476,
        "min": -84.49,
        "median": -35.51,
        "mean": -37.5,
        "p90": -26.49,
        "p99": -19.88,
        "max": -15.52
      },
      "smallerThanPngDefaultShare": 100,
      "alphaPreservedShare": 100,
      "pixelExactShare": 100,
      "totalBytes": 29481391
    },
    "webp_lossless": {
      "label": "WebP lossless",
      "options": {
        "lossless": true
      },
      "bytes": {
        "n": 3476,
        "min": 66,
        "median": 5534,
        "mean": 6150,
        "p90": 10458,
        "p99": 18735,
        "max": 45564
      },
      "vsPngDefaultPct": {
        "n": 3476,
        "min": -99.02,
        "median": -54.28,
        "mean": -56.47,
        "p90": -44.08,
        "p99": -37.5,
        "max": -30.24
      },
      "smallerThanPngDefaultShare": 100,
      "alphaPreservedShare": 100,
      "pixelExactShare": 100,
      "totalBytes": 21378694
    },
    "webp_q80": {
      "label": "WebP lossy q80",
      "options": {
        "quality": 80
      },
      "bytes": {
        "n": 3476,
        "min": 596,
        "median": 6053,
        "mean": 6665,
        "p90": 10993,
        "p99": 19265,
        "max": 46094
      },
      "vsPngDefaultPct": {
        "n": 3476,
        "min": -91.55,
        "median": -49.75,
        "mean": -52.08,
        "p90": -40.67,
        "p99": -35.19,
        "max": -28.71
      },
      "smallerThanPngDefaultShare": 100,
      "alphaPreservedShare": 100,
      "pixelExactShare": null,
      "totalBytes": 23167052
    },
    "avif_q50": {
      "label": "AVIF q50",
      "options": {
        "quality": 50
      },
      "bytes": {
        "n": 3476,
        "min": 499,
        "median": 3787,
        "mean": 4207,
        "p90": 6756,
        "p99": 11923,
        "max": 29603
      },
      "vsPngDefaultPct": {
        "n": 3476,
        "min": -92.61,
        "median": -68.67,
        "mean": -69.13,
        "p90": -61.24,
        "p99": -54.48,
        "max": -30.41
      },
      "smallerThanPngDefaultShare": 100,
      "alphaPreservedShare": 100,
      "pixelExactShare": null,
      "totalBytes": 14622964
    }
  },
  "dimensions": {
    "256": {
      "bytes": {
        "n": 3476,
        "min": 750,
        "median": 5110,
        "mean": 5471,
        "p90": 8123,
        "p99": 13586,
        "max": 29025
      },
      "vs512Pct": {
        "n": 3476,
        "min": -79.32,
        "median": -58.69,
        "mean": -59.18,
        "p90": -55.83,
        "p99": -54.14,
        "max": -52.25
      }
    },
    "512": {
      "bytes": {
        "n": 3476,
        "min": 2074,
        "median": 12545,
        "mean": 13264,
        "p90": 19072,
        "p99": 30615,
        "max": 65314
      },
      "vs512Pct": {
        "n": 3476,
        "min": 0,
        "median": 0,
        "mean": 0,
        "p90": 0,
        "p99": 0,
        "max": 0
      }
    },
    "1024": {
      "bytes": {
        "n": 3476,
        "min": 6220,
        "median": 33076,
        "mean": 34295,
        "p90": 47805,
        "p99": 72303,
        "max": 147412
      },
      "vs512Pct": {
        "n": 3476,
        "min": 124.26,
        "median": 158.68,
        "mean": 163.23,
        "p90": 190.37,
        "p99": 245.28,
        "max": 426.31
      }
    }
  }
}
