Adding Rank Magnitude to the CrUX Report in BigQuery
Starting with the February 2021 dataset, we’re adding an experimental metric to the CrUX report in BigQuery which distinguishes the popularity of origins by orders of magnitude: The top 1k origins, top 10k, top 100k, top 1M, ... Let’s see how this looks in practice:
experimental.popularity.rank AS rank_magnitude,
COUNT(DISTINCT origin) AS num_origins
For the February 2021 global data set, we get 5 buckets. As expected, in row 1, we see that there are 1000 origins with rank magnitude 1000 - the 1k most popular origins by our metric. Row 2 may look surprising, indicating that there are only 9k origins in the top 10k set; this is because the origins in row 1 are also part of the top 10k set. To select the top 10k origins, one needs to specify experimental.popularity.rank <= 10000 when querying.
The dataset also contains country specific rank magnitude. For example, this query lists the 10k origins that are most popular in Germany.
SELECT DISTINCT origin
WHERE experimental.popularity.rank <= 10000
To touch on the potential of our new popularity metric, let’s see how popularity segments of the web differ with respect to the first contentful paint metric (FCP). For the purpose of this query, we consider 1 second a fast user experience.
UNNEST(first_contentful_paint.histogram.bin) AS fcp
fcp.start < 1000 AND experimental.popularity.rank <= 1000
For the origins with experimental.popularity.rank <= 1000, the query sums all histogram bucket densities for FCP metric values smaller than 1000ms and divides it by the number of origins - that is, it calculates the average percentage of fast FCP loads for the 1k most popular origins. In this query, all origins have equal weight, so arguably this is not perfect. But let’s see whether the result is sensitive to changing the rank magnitude, by altering the where clause to specify experimental.popularity.rank <= 10000. We do this for 10k, 100k, and so on:
|Rank magnitude of origins||Percentage of FCP < 1s, averaged over origins|
This indicates that a faster user experience on the web is correlated with being more popular.