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
| --select data.date, data.project, count(distinct data.revision) as pushes, sum(data.cost) as cost, sum(data.cost)/count(distinct data.revision) as cost_per_push from ( | |
| select count(distinct data.revision) as pushes, sum(data.cost) as cost, sum(data.cost)/count(distinct data.revision) as cost_per_push from ( | |
| SELECT | |
| DATE_TRUNC(dts.date, MONTH) as date, | |
| dts.revision, | |
| dts.project, | |
| dts.workerType, | |
| -- sum(cpw.cost) as cost | |
| (sum(dts.execution)/3600)*(sum(cpw.cost)/sum(cpw.hours)) as cost | |
| FROM |
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
| -- TODO extract month | |
| select data.date, data.project, count(distinct data.revision) as pushes, sum(data.cost) as cost, sum(data.cost)/count(distinct data.revision) as cost_per_push from ( | |
| SELECT | |
| DATE_TRUNC(dts.date, MONTH) as date, | |
| dts.revision, | |
| dts.project, | |
| dts.workerType, | |
| -- sum(cpw.cost) as cost | |
| (sum(dts.execution)/3600)*(sum(cpw.cost)/sum(cpw.hours)) as cost | |
| FROM |
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
| {'06a61ba9c44415c7e84eb2c1548f53a95bd651e0': ['test-linux64-shippable-qr/opt-raptor-tp6-28-firefox-cold-e10s', 'test-linux64-shippable/opt-raptor-tp6-28-firefox-cold-e10s', 'test-macosx1014-64-shippable/opt-raptor-tp6-28-firefox-cold-e10s'], 'd28ceb16f6839c79662e1eb355584d87a9810d60': ['test-linux64-shippable-qr/opt-raptor-ares6-firefox-e10s', 'test-linux64-shippable-qr/opt-raptor-speedometer-firefox-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-13-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-25-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-webaudio-firefox-e10s', 'test-linux64-shippable/opt-raptor-motionmark-htmlsuite-firefox-e10s', 'test-linux64-shippable/opt-raptor-speedometer-firefox-e10s', 'test-linux64-shippable/opt-raptor-stylebench-firefox-e10s', 'test-linux64-shippable/opt-raptor-tp6-13-firefox-cold-e10s', 'test-linux64-shippable/opt-raptor-webaudio-firefox-e10s', 'test-macosx1014-64-shippable/opt-raptor-webaudio-firefox-e10s', 'test-windows10-64-shippable-qr/opt-rapto |
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
| {'dbaa47665f9a2693efa9bbafef7133f6c8278ee0': ['test-linux64-shippable-qr/opt-raptor-tp6-18-firefox-cold-e10s', 'test-windows7-32-shippable/opt-raptor-tp6-24-firefox-cold-e10s', 'test-windows7-32-shippable/opt-raptor-tp6-27-firefox-cold-e10s'], '06a61ba9c44415c7e84eb2c1548f53a95bd651e0': ['test-linux64-shippable-qr/opt-raptor-tp6-28-firefox-cold-e10s', 'test-linux64-shippable/opt-raptor-tp6-28-firefox-cold-e10s', 'test-macosx1014-64-shippable/opt-raptor-tp6-28-firefox-cold-e10s'], '45c58c03f69e7cf6f9bb567bdcc0580b31d92ce5': ['test-android-hw-p2-8-0-android-aarch64/pgo-raptor-tp6m-23-geckoview-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-11-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-17-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-22-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-3-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-30-firefox-cold-e10s', 'test-linux64-shippable-qr/opt-raptor-tp6-7-firefox-cold-e10s', 'test-linux64-shippable/o |
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
| SET @frameworks = 'raptor,browsertime,talos,awsy'; | |
| select | |
| perf_summary.revision, | |
| job_type.name | |
| FROM ( | |
| select | |
| distinct push.revision as revision, | |
| summary.push_id as push_id, | |
| summary.repository_id as repository_id, |
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
| DECLARE start_date DATE DEFAULT "2020-01-01"; | |
| DECLARE end_date DATE DEFAULT "2020-06-01"; | |
| -- granularity is date_part: ideally 'day' or 'month', could be 'week' | |
| DECLARE granularity STRING DEFAULT "month"; | |
| DECLARE types ARRAY <STRING>; | |
| set types = ['t-linux-large', 't-linux-xlarge', 'gecko-t/t-linux-xlarge', 'gecko-t/t-linux-large', 'gecko-t/t-win10-64', 'gecko-t/t-win10-64-gpu-s', 'gecko-t/t-win7-32', 'gecko-t/t-win7-32-gpu']; | |
| -- set types = ['gecko-t/t-linux-large', 't-linux-large']; | |
| SELECT | |
| CASE |
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
| DECLARE start_date DATE DEFAULT "2020-01-01"; | |
| DECLARE end_date DATE DEFAULT "2020-06-01"; | |
| -- granularity is date_part: ideally 'day' or 'month', could be 'week' | |
| DECLARE granularity STRING DEFAULT "month"; | |
| DECLARE types ARRAY <STRING>; | |
| set types = ['t-linux-large', 't-linux-xlarge', 'gecko-t/t-linux-xlarge', 'gecko-t/t-linux-large', 'gecko-t/t-win10-64', 'gecko-t/t-win10-64-gpu-s', 'gecko-t/t-win7-32', 'gecko-t/t-win7-32-gpu']; | |
| CREATE TEMP FUNCTION | |
| summary(a ARRAY<STRUCT<timestamp TIMESTAMP, | |
| eventType STRING>>) |
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
| DECLARE start_date DATE DEFAULT "2020-01-01"; | |
| DECLARE end_date DATE DEFAULT "2020-06-01"; | |
| -- granularity is date_part: ideally 'day' or 'month', could be 'week' | |
| DECLARE granularity STRING DEFAULT "month"; | |
| DECLARE types ARRAY <STRING>; | |
| set types = ['t-linux-large', 't-linux-xlarge', 'gecko-t/t-linux-xlarge', 'gecko-t/t-linux-large', 'gecko-t/t-win10-64', 'gecko-t/t-win10-64-gpu-s', 'gecko-t/t-win7-32', 'gecko-t/t-win7-32-gpu']; | |
| CREATE TEMP FUNCTION | |
| summary(a ARRAY<STRUCT<timestamp TIMESTAMP, | |
| eventType STRING>>) |
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
| SET @frameworks = 'raptor,browsertime,talos,awsy'; | |
| SELECT summary.bug_number AS bug_number, | |
| alert.created, | |
| alert.is_regression, | |
| commit.revision, | |
| job_type.name | |
| FROM performance_alert AS alert | |
| INNER JOIN performance_alert_summary AS summary ON ((alert.related_summary_id IS NULL AND summary.id = alert.summary_id) OR summary.id = alert.related_summary_id) | |
| INNER JOIN performance_alert_summary AS original_summary ON original_summary.id = alert.summary_id |
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
| DECLARE start_date DATE DEFAULT "2020-01-01"; | |
| DECLARE end_date DATE DEFAULT "2020-06-01"; | |
| -- granularity is date_part: ideally 'day' or 'month', could be 'week' | |
| DECLARE granularity STRING DEFAULT "month"; | |
| DECLARE types ARRAY <STRING>; | |
| set types = ['t-linux-large', 't-linux-xlarge', 'gecko-t/t-linux-xlarge', 'gecko-t/t-linux-large', 'gecko-t/t-win10-64', 'gecko-t/t-win10-64-gpu-s', 'gecko-t/t-win7-32', 'gecko-t/t-win7-32-gpu']; | |
| CREATE TEMP FUNCTION | |
| summary(a ARRAY<STRUCT<timestamp TIMESTAMP, | |
| eventType STRING>>) |