Skip to content

Commit

Permalink
Use INP in "Good CWV" assessment (#186)
Browse files Browse the repository at this point in the history
* Update cruxPassesCWV.sql

* Update cruxPassesCWV.sql

* Update cruxPassesCWV.sql
  • Loading branch information
rviscomi committed Mar 7, 2024
1 parent a6485c7 commit 4015e56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sql/timeseries/cruxPassesCWV.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ SELECT
IF(device = 'desktop', 'desktop', 'mobile') AS client,
SAFE_DIVIDE(
COUNT(DISTINCT IF(
/* FID can be null and is not mandatory for CWV */
(p75_fid IS NULL OR IS_GOOD(fast_fid, avg_fid, slow_fid)) AND
IF(
/* INP replaced FID as a CWV in March 2024 (202402 release date). */
yyyymm >= 202402,
/* INP/FID can be null and are not mandatory for CWV */
(p75_inp IS NULL OR IS_GOOD(fast_inp, avg_inp, slow_inp)),
(p75_fid IS NULL OR IS_GOOD(fast_fid, avg_fid, slow_fid))
) AND
IS_GOOD(fast_lcp, avg_lcp, slow_lcp) AND
IS_GOOD(small_cls, medium_cls, large_cls), origin, NULL
)),
Expand Down

0 comments on commit 4015e56

Please sign in to comment.