browsertime icon indicating copy to clipboard operation
browsertime copied to clipboard

Why does SpeedIndex have second as their unit?

Open sefeng211 opened this issue 5 years ago • 3 comments

Looks like starting from this commit, SpeedIndex is interpreted as a time, this feels weird and incorrect.

sefeng211 avatar Jul 09 '20 14:07 sefeng211

Hi @sefeng211 I think Speed Index always been ms/s see https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/metrics/speed-index but there was a move a year ago or something where all tools started to show it instead of having it unit-less, see for example https://github.com/GoogleChrome/lighthouse/issues/6130

soulgalore avatar Jul 09 '20 14:07 soulgalore

Hi @soulgalore, I find that using seconds as the unit is a bit misleading given that *SI metrics actually have units of %complete * time which is likely why lighthouse is showing them as unitless now.

I think the webpagetest documentation is also misleading since speed index is calculated as the area under a curve which is not a time value. I would agree that it approximates a temporal value, but it isn't exactly a temporal value:

The Speed Index is the average time at which visible parts of the page are displayed.  It is expressed in milliseconds...

gmierz avatar Jul 09 '20 15:07 gmierz

Yep I see your point, but I think you are wrong how other tools show them, see the Lighthouse link I posted and the screenshot from LightHouse:

Screenshot 2021-04-12 at 14 15 56

I don't changing though, can we have something better than it unitless?

soulgalore avatar Apr 12 '21 12:04 soulgalore

This isn't perfect but maybe we can leave it as is for now.

soulgalore avatar Dec 17 '23 05:12 soulgalore