Created
July 18, 2018 16:15
-
-
Save patrickhulce/ea9d10a934fb079ea1c70cad30982936 to your computer and use it in GitHub Desktop.
HTTP Archive Lighthouse Queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Get the distribution of performance scores */ | |
SELECT | |
QUANTILES(FLOAT(JSON_EXTRACT_SCALAR(report, '$.categories.performance.score')), 21) | |
FROM | |
[httparchive:lighthouse.2018_07_01_mobile] | |
WHERE | |
report != 'null' | |
AND JSON_EXTRACT(report, '$.categories.performance.score') != 'null' | |
/* Get the distribution of FCP values */ | |
SELECT | |
QUANTILES(FLOAT(JSON_EXTRACT_SCALAR(report, '$.audits.first-contentful-paint.rawValue')), 21) | |
FROM | |
[httparchive:lighthouse.2018_07_01_mobile] | |
WHERE | |
report != 'null' | |
AND JSON_EXTRACT(report, '$.audits.first-contentful-paint.rawValue') != 'null' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment