custom-metrics icon indicating copy to clipboard operation
custom-metrics copied to clipboard

[Performance 2024] Added bytesPerPixel (BPP) property to Images custom metric

Open kevinfarrugia opened this issue 9 months ago • 6 comments

Add bytesPerPixel custom metric. This is calculated as (filesize in bits) / (image display height * image display width)

Note that it would return 0 for cross-origin images that do not include the timing-allow-origin header.


Test websites:

  • https://web.dev
  • https://almanac.httparchive.org/

kevinfarrugia avatar May 23 '24 10:05 kevinfarrugia