The Promise and Pitfalls of WebAssembly: Perspectives from the Industry

Ningyu He, Shangtong Cao, Haoyu Wang, Yao Guo, Xiapu Luo · 2025

Read The Promise and Pitfalls of WebAssembly: Perspectives from the Industry by Ningyu He, Shangtong Cao, Haoyu Wang, Yao Guo, Xiapu Luo (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-21240.txt.

Introduction

WebAssembly, launched in 2017, lets programs written in other languages run fast and safely inside web browsers. Ningyu He, Shangtong Cao, Haoyu Wang, Yao Guo, and Xiapu Luo measured how industry actually uses it in 2025. They gathered the largest dataset of real-world WebAssembly programs they knew of and studied their size, source language, security issues, and purpose.

The findings are sorted by audience: web developers, the people who maintain WebAssembly itself, and researchers. For each group the authors give suggestions and best practices drawn from the data. Heavy tasks such as 3D graphics and video decoding are a common use. The team hopes the survey guides the future path of the web platform.

Catalog record

CREATORNingyu He, Shangtong Cao, Haoyu Wang, Yao Guo, Xiapu Luo
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE61 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-21240

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

The Promise and Pitfalls of WebAssembly: Perspectives from the Industry Ningyu He, Shangtong Cao, Haoyu Wang, Yao Guo, Xiapu Luo Abstract . As JavaScript has been criticized for performance and security issues in web applications, WebAssembly (Wasm) was proposed in 2017 and is regarded as the complementation for JavaScript. Due to its advantages like compact-size, native-like speed, and portability, Wasm binaries are gradually used as the compilation target for industrial projects in other high-level programming languages and are responsible for computation-intensive tasks in browsers, e.g., 3D graphic rendering and video decoding. Intuitively, characterizing in-the-wild adopted Wasm binaries from different perspectives, like their metadata, relation with source programming language, existence of security threats, and practical purpose, is the prerequisite before delving deeper into the Wasm ecosystem and beneficial to its roadmap selection. However, currently, there is no work that conducts a large-scale measurement study on in-the-wild adopted Wasm binaries. To fill this gap, we collect the largest-ever dataset to the best of our knowledge, and characterize the status quo of them from industry perspectives. According to the different roles of people engaging in the community, i.e., web developers, Wasm maintainers, and researchers, we reorganized our findings to suggestions and best practices for them accordingly. We believe this work can shed light on the future direction of the web and Wasm. DOI: XXXXXXX.XXXXXXX Conference: Make sure to enter the correct conference title from your rights confirmation emai; June 03–05, 2018; Woodstock, NY Companion Proceedings of the 33rd ACM Symposium on the Foundations of Software Engineering (FSE ’25), June 23–27, 2025, Trondheim, Norway ISBN: 978-1-4503-XXXX-X/18/06 1. Introduction Since the World Wide Web (WWW) was proposed and implemented in the 90s ( www, 2024 ) , to meet the increasingly diverse needs of users, the hosted contents on online webpages have been transformed from static ones to dynamic ones. Such feature supports were originally completed by JavaScript, which, however, has been widely criticized by both industry and academia due to its security and efficiency issues ( Haas et al., 2017 ) . Under this context, WebAssembly (Wasm), as a low-level programming language proposed in 2017, is thriving, which was designed as a complement to JavaScript in web browsers. According to statistics ( caniuse, 2024 ) , more than 97% of worldwide web browsers support running binaries written in Wasm in them. Because Wasm is well suited for achieving computationally intensive tasks, many industrial applications running on the web use Wasm binaries as the computing core, such as Photoshop, AutoCAD, and Google Earth ( Osmani, 2023 ; Mears, 2023 ; autocad, 2023 ) . Despite its huge success, there is still no work that systematically analyzes Wasm binaries that are actually deployed in the real world . Take the most similar and relevant studies as instances. A. Hilbig et al. ( Hilbig et al., 2021 ) claimed that they conducted a measurement on real-world Wasm binaries . However, nearly 80% of investigated cases are collected from GitHub repos, which are not guaranteed to be used in actual production, and may also contain toy apps written by developers to learn Wasm. Moreover, M. Musch et al. ( Musch et al., 2019 ) have conducted the most similar work. However, they have only crawled Wasm binaries from the Alexa top 1M, which is a tiny portion, around one-thousandth, of all hosted websites all over the world. Moreover, at the time of their writing, Wasm was still in its infancy stage, which cannot effectively reflect the prosperity that Wasm had reached in recent years. To fill this gap and conduct a systematic measurement, we focus on the following industrial-related research questions (RQs). RQ1: Hosting environment. Wasm binaries should be hosted on websites to provide services to visitors. When are these Wasm binaries deployed in the hosting environment? How are these websites distributed around the world? Are these websites malicious and popular? These questions will help readers understand the characteristics of websites that use Wasm binaries to provide services in the real world, uncovering a crucial part of the Wasm ecosystem. RQ2: Meta information of Wasm binaries. As a low-level binary format, developers compile projects in high-level programming languages, like C, C++, GO, and Rust, to Wasm binaries instead of directly composing them. What is the source language of these Wasm binaries? What compilation toolchain does the developer use? Is Wasm a size-efficient format? For developers, having the answers to these questions can better evaluate the technology stack required to develop Wasm binaries. RQ3: Security Threats. Many existing works indicate that Wasm binaries can be used by adversaries with malicious intent ( Bian et al., 2019 ) . In addition, some work has pointed out that there may be vulnerabilities in Wasm binaries that can be exploited, leading to process crashes or even privacy leaks in their hosting environment ( Stiévenart et al., 2022 ; Lehmann et al., 2020 ; Johnson et al., 2023 ) . Are Wasm binaries deployed in real environments malicious? Do they have vulnerabilities that can be exploited? Knowing the answers to these two questions allows researchers to better evaluate the positive and negative impacts brought by adopting Wasm binaries. RQ4: Practical purpose. Portability, as one of the important advantages of Wasm, makes Wasm binaries have good versatility, that is, they can be used in various types of applications and can be supported by multiple main-stream browsers. What are Wasm binaries used for? If we can answer this question, we can make a targeted judgment on the development direction of Wasm, as well as the efficiency bottleneck that can be used to conduct optimization for browser vendors and tooling developers. This work. To answer these RQs, we need to collect as many once-deployed Wasm binaries and their hosting webpages as possible. To the best of our knowledge, we have collected the largest ever data set, which is composed of more than 4.6K unique real-world deployed Wasm binaries on the Internet. Taking advantage of heuristic methods, Wasm-specific analyzers, and online services, we depict the status quo of Wasm binaries that are adopted in real-world from various industry perspectives. For promoting community development, we have uploaded the whole dataset in link . The body of the paper is organized as follows. § 2 introduces some necessary basic knowledge about Wasm. § 3 details the adopted method to collect the dataset, as well as the overview of the whole dataset. § 4 to § 7 respectively answer the four RQs. Then, according to the different roles of people in the Wasm community, i.e., developers, maintainers, and researchers, we give the corresponding suggestions in § 8 . Finally, the last three sections discuss the limitations, related work, and conclusion of this work, respectively. 2. Background In this section, we will introduce the necessary preliminary knowledge about Wasm to uncover its unique features. Portability As we underlined in § 1 , portability is one of the greatest strengths of Wasm, which can be explained from two perspectives. Wasm can be taken as the compilation target for more than 40 types of high-level programming languages , including C/C++, Go, and Rust ( WebAssembly, 2023g ) . Such compilation processes have been supported by mainstream or even official compilation toolchains, e.g., clang

Read the complete text