Distinguishability-guided Test Program Generation for WebAssembly Runtime Performance Testing

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Jiang, Shuyao, Zeng, Ruiying, Zhou, Yangfan, Lyu, Michael R.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913628747202560
author Jiang, Shuyao
Zeng, Ruiying
Zhou, Yangfan
Lyu, Michael R.
author_facet Jiang, Shuyao
Zeng, Ruiying
Zhou, Yangfan
Lyu, Michael R.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_20100
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Distinguishability-guided Test Program Generation for WebAssembly Runtime Performance Testing
Jiang, Shuyao
Zeng, Ruiying
Zhou, Yangfan
Lyu, Michael R.
Software Engineering
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.
title Distinguishability-guided Test Program Generation for WebAssembly Runtime Performance Testing
topic Software Engineering
url https://arxiv.org/abs/2412.20100