SEApr 15

Debugging Performance Issues in WebAssembly Runtimes via Mutation-based Inference

arXiv:2604.1369321.1h-index: 2Has Code
AI Analysis

For developers of WebAssembly runtimes, WarpL provides a novel method to pinpoint root causes of performance issues caused by suboptimal compilation, addressing a gap in existing debugging tools.

WarpL is a mutation-based approach that identifies suboptimal instruction sequences causing performance issues in WebAssembly runtimes. It successfully diagnosed 10 out of 12 real-world issues, including six previously unknown ones in Wasmtime.

Performance debugging in WebAssembly (Wasm) runtimes is essential for ensuring the robustness of Wasm, especially since performance issues have frequently occurred in Wasm runtimes, which can significantly degrade the capabilities of hosted services. Many performance issues in Wasm runtimes result from suboptimal compilation of input Wasm programs, for which existing performance debugging methods primarily designed for application-level inefficiencies are not well-suited. In this paper, we present WarpL, a novel mutation-based approach that aims to identify the exact suboptimal instruction sequences responsible for the performance issues in Wasm runtimes, thereby narrowing down the root causes. Specifically, WarpL obtains a functionally similar mutant in which the performance issue does not manifest, and isolates the exact suboptimal instructions by comparing the machine code of the original and mutated programs. We implement WarpL as an open-source tool and evaluate it on 12 real-world performance issues across three widely used Wasm runtimes. WarpL identified the exact causes in 10 out of 12 issues. Notably, we have used WarpL to successfully diagnose six previously unknown performance issues in Wasmtime.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes