Skip to content

Commit 59ffa73

Browse files
nrllhtunethewebnimeshgitgithub-actions[bot]
authored
WebAssembly edits (#4401)
* Revise WebAssembly 2025 Enhanced clarity and corrected minor inaccuracies in the text. It is not finalized yet. * Enhanced unique metrics Updated date filters and added new metrics for WebAssembly requests. * Final edits * Linting fixes * SQL JSON_VALUE preference * Restore SQL comment * Another comment * Apply suggestions from code review Co-authored-by: Barry Pollard <barrypollard@google.com> * Further edits Removed redundant sentence from introduction * Fix formatting in WebAssembly introduction section * Revise WebAssembly data collection statistics Updated the data collection section to reflect the identification of WebAssembly modules on sites analyzed. * Apply suggestions from code review * Update link for almanac-wasm tool * Update WebAssembly usage statistics Removed figure markup for WebAssembly usage statistics and updated the text to reflect the current adoption rates. * Update WebAssembly libraries popularity statement Removed mention of Microsoft's dominance in WebAssembly ecosystem. * Revise WebAssembly chapter with updated statistics and tools As per the pull request (#4401), enhanced compression methods, data collection and analysis methods, revised statistics on WebAssembly module sizes and usage. Improved clarity on language usage and library dominance in WebAssembly + other minor edits as suggested. * Delete src/static/images/2025/webassembly/language-usage.png revise language usage that counts duplicates in percentage * added compression methods + updated language usage we have updated compression methods for both clients desktop and mobile + updated language usage chart with duplicate records counts percentage stats. * Optimised images with calibre/image-actions * Optimised images with calibre/image-actions * Optimised images with calibre/image-actions * Retake images * Optimised images with calibre/image-actions * Minor edits * More edits * Retake image * Optimised images with calibre/image-actions * Edits --------- Co-authored-by: Barry Pollard <barrypollard@google.com> Co-authored-by: Nimesh Vadgama - VN <38841604+nimeshgit@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a4ed063 commit 59ffa73

File tree

6 files changed

+88
-105
lines changed

6 files changed

+88
-105
lines changed

sql/2025/webassembly/counts.sql

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ WITH wasmRequests AS (
77
page,
88
root_page,
99
url,
10-
REGEXP_EXTRACT(url, r'([^/]+)$') AS filename -- lowercase & extract filename between last `/` and `.` or `?`
10+
REGEXP_EXTRACT(url, r'([^/]+)$') AS filename, -- lowercase & extract filename between last `/` and `.` or `?`
11+
SAFE_CAST(JSON_VALUE(summary.respBodySize) AS INT64) AS respBodySize
1112
FROM
1213
`httparchive.crawl.requests`
1314
WHERE
14-
date IN ('2021-07-01', '2022-06-01', '2024-06-01', '2025-07-01') AND
15+
date IN ('2021-07-01', '2022-06-01', '2023-06-01', '2024-06-01', '2025-07-01') AND
1516
(
1617
(date IN ('2024-06-01', '2025-07-01') AND type = 'wasm') -- wasm type was added in Jan 2024
1718
OR
18-
(date IN ('2021-07-01', '2022-06-01') AND (JSON_VALUE(summary.mimeType) = 'application/wasm' OR JSON_VALUE(summary.ext) = 'wasm'))
19+
(date IN ('2021-07-01', '2022-06-01', '2023-06-01') AND (JSON_VALUE(summary.mimeType) = 'application/wasm' OR JSON_VALUE(summary.ext) = 'wasm'))
1920
)
2021
),
2122

@@ -28,7 +29,7 @@ totals AS (
2829
FROM
2930
`httparchive.crawl.requests`
3031
WHERE
31-
date IN ('2021-07-01', '2022-06-01', '2024-06-01', '2025-07-01')
32+
date IN ('2021-07-01', '2022-06-01', '2023-06-01', '2024-06-01', '2025-07-01')
3233
GROUP BY
3334
date,
3435
client
@@ -37,8 +38,12 @@ totals AS (
3738
SELECT
3839
date,
3940
client,
40-
COUNT(0) AS total_wasm,
41-
COUNT(DISTINCT filename) AS unique_wasm,
41+
COUNT(0) AS total_wasm_requests,
42+
COUNT(DISTINCT filename) AS unique_filenames,
43+
-- NEW: Distinct based on full URL
44+
COUNT(DISTINCT url) AS unique_urls,
45+
-- NEW: Distinct based on Name + Size
46+
COUNT(DISTINCT CONCAT(filename, '-', CAST(respBodySize AS STRING))) AS unique_wasm_by_size,
4247
COUNT(DISTINCT root_page) AS sites,
4348
total_sites,
4449
COUNT(DISTINCT root_page) / total_sites AS pct_sites,

0 commit comments

Comments
 (0)