dfabulich / baseline-calculator

A script to estimate how long it takes new web features to achieve widespread availability
ISC License
3 stars 1 forks source link

caniuse usage data for Firefox is suspect #7

Open foolip opened 1 year ago

foolip commented 1 year ago

Splitting https://github.com/dfabulich/baseline-calculator/issues/3#issuecomment-1573985391 into its own issue:

https://gist.github.com/foolip/87088161970e9cc152cc8b425f8474ca is a dump of the caniuse data for Firefox usage from 2023-05-22T09:14:47.000Z, which is what ends up being used to compute the 83.08% number in the previous comment.

The data seems implausible, claiming that 0.48% of global usage is still on Firefox 1-71. What's most implausible is that the usage is roughly even spread across those versions. Firefox 2 supposedly has 0.004118%, and 71 has 0.004425%. @jgraham @zcorpan does this seem remotely plausible to you?

One meta conclusion here is that the analysis is extremely sensitive to the shape of the long tail of version decay. I don't know why the caniuse data (from statcounter) looks like this, but it's also a lesson if we try to model version decay. In particular, it's importan that the cumulative usage of old versions is roughly correct. I can't imagine that it is for Firefox in this data.

foolip commented 1 year ago

Taking it upstream as well in https://github.com/Fyrd/caniuse/issues/6733.

foolip commented 1 year ago

A bug was found and fixed in https://github.com/Fyrd/caniuse/commit/87ff4c195c26038aa6f341225c56b88a24f9d679. The data still seems odd, I'm poking more.