arXiv · 2412.20100
Distinguishability-guided Test Program Generation for WebAssembly Runtime Performance Testing
Abstract
WebAssembly (Wasm) is a binary instruction format designed as a portable compilation target, which has been widely used on both the web and server sides in recent years. As high performance is a critical design goal of Wasm, it is essential to conduct performance testing for Wasm runtimes. However, existing research on Wasm runtime performance testing still suffers from insufficient high-quality test programs. To solve this problem, we propose a novel test program generation approach WarpGen. It first extracts code snippets from historical issue-triggering test programs as initial operators, then inserts an operator into a seed program to synthesize a new test program. To verify the quality of generated programs, we propose an indicator called distinguishability, which refers to the ability of a test program to distinguish abnormal performance of specific Wasm runtimes. We apply WarpGen for performance testing on four Wasm runtimes and verify its effectiveness compared with baseline approaches. In particular, WarpGen has identified seven new performance issues in three Wasm runtimes.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Shuyao Jiang, Ruiying Zeng, Yangfan Zhou, Michael R. Lyu. 2024-12-28. Distinguishability-guided Test Program Generation for WebAssembly Runtime Performance Testing. https://arxiv.org/abs/2412.20100
Cite the original work for its findings. Save a collection to share your selection of sources.