-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:HTTPArchive/almanac.httparchive.org…
… into production
- Loading branch information
Showing
9 changed files
with
760 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
26 changes: 26 additions & 0 deletions
26
sql/2020/22_HTTP_2/avg_percentage_of_resources_loaded_over_HTTP_by_version_per_site.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# standardSQL | ||
# Average percentage of resources loaded over HTTP .9, 1, 1.1, 2, and QUIC per site | ||
SELECT | ||
client, | ||
protocol, | ||
AVG(num_requests / total_requests) AS avg_pct_requests_per_page | ||
FROM ( | ||
SELECT | ||
client, | ||
page, | ||
IF(JSON_EXTRACT_SCALAR(payload, '$._protocol') IN ('http/0.9', 'http/1.0', 'http/1.1', 'HTTP/2', 'QUIC', 'http/2+quic/46', 'HTTP/3'), JSON_EXTRACT_SCALAR(payload, '$._protocol'), 'other') AS protocol, | ||
COUNT(0) AS num_requests, | ||
SUM(COUNT(0)) OVER (PARTITION BY client, page) AS total_requests | ||
FROM | ||
`httparchive.almanac.requests` | ||
WHERE | ||
date = '2020-08-01' | ||
GROUP BY | ||
client, | ||
page, | ||
protocol) | ||
GROUP BY | ||
client, | ||
protocol | ||
ORDER BY | ||
avg_pct_requests_per_page DESC |
32 changes: 0 additions & 32 deletions
32
sql/2020/22_HTTP_2/percentage_of_resources_loaded_over_HTTP_by_version_per_site.sql
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
# standardSQL | ||
# Distribution of TLS versions | ||
# Distribution of TLS versions by HHTP Version | ||
SELECT | ||
client, | ||
http_version, | ||
protocol, | ||
tls_version, | ||
COUNT(0) AS freq, | ||
SUM(COUNT(0)) OVER (PARTITION BY client) AS total, | ||
ROUND(COUNT(0) / SUM(COUNT(0)) OVER (PARTITION BY client), 4) pct | ||
COUNT(DISTINCT page) AS freq, | ||
total, | ||
COUNT(DISTINCT page) / total AS pct | ||
FROM ( | ||
SELECT | ||
client, | ||
JSON_EXTRACT_SCALAR(payload, '$._protocol') as http_version, | ||
JSON_EXTRACT_SCALAR(payload, '$._tls_version') AS tls_version | ||
FROM `httparchive.almanac.requests` WHERE date='2020-08-01' | ||
) | ||
page, | ||
IF(JSON_EXTRACT_SCALAR(payload, '$._protocol') IN ('http/0.9', 'http/1.0', 'http/1.1', 'HTTP/2', 'QUIC', 'http/2+quic/46', 'HTTP/3'), JSON_EXTRACT_SCALAR(payload, '$._protocol'), 'other') AS protocol, | ||
IFNULL(JSON_EXTRACT_SCALAR(payload, '$._tls_version'), JSON_EXTRACT_SCALAR(payload, '$._securityDetails.protocol')) AS tls_version | ||
FROM | ||
`httparchive.almanac.requests` | ||
WHERE | ||
date = '2020-08-01' AND | ||
STARTS_WITH(url, 'https') AND | ||
firstHtml) | ||
JOIN ( | ||
SELECT | ||
_TABLE_SUFFIX AS client, | ||
COUNT(0) AS total | ||
FROM | ||
`httparchive.summary_pages.2020_08_01_*` | ||
WHERE | ||
STARTS_WITH(url, 'https') | ||
GROUP BY | ||
client) | ||
USING | ||
(client) | ||
GROUP BY | ||
client, | ||
http_version, | ||
tls_version | ||
protocol, | ||
tls_version, | ||
total | ||
ORDER BY | ||
freq / total DESC | ||
pct DESC |
This file contains 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
Oops, something went wrong.