Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing

WebAssembly (Wasm) is a bytecode format originally serving as a compilation target for Web applications. It has recently been used increasingly on the server side, e.g., providing a safer, faster, and more portable alternative to Linux containers. With the popularity of server-side Wasm applications...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jiang, Shuyao, Zeng, Ruiying, Rao, Zihao, Gu, Jiazhen, Zhou, Yangfan, Lyu, Michael R
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Jiang, Shuyao
Zeng, Ruiying
Rao, Zihao
Gu, Jiazhen
Zhou, Yangfan
Lyu, Michael R
description WebAssembly (Wasm) is a bytecode format originally serving as a compilation target for Web applications. It has recently been used increasingly on the server side, e.g., providing a safer, faster, and more portable alternative to Linux containers. With the popularity of server-side Wasm applications, it is essential to study performance issues (i.e., abnormal latency) in Wasm runtimes, as they may cause a significant impact on server-side applications. However, there is still a lack of attention to performance issues in server-side Wasm runtimes. In this paper, we design a novel differential testing approach WarpDiff to identify performance issues in server-side Wasm runtimes. The key insight is that in normal cases, the execution time of the same test case on different Wasm runtimes should follow an oracle ratio. We identify abnormal cases where the execution time ratio significantly deviates from the oracle ratio and subsequently locate the Wasm runtimes that cause the performance issues. We apply WarpDiff to test five popular server-side Wasm runtimes using 123 test cases from the LLVM test suite and demonstrate the top 10 abnormal cases we identified. We further conduct an in-depth analysis of these abnormal cases and summarize seven performance issues, all of which have been confirmed by the developers. We hope our work can inspire future investigation on improving Wasm runtime implementation and thus promoting the development of server-side Wasm applications.
doi_str_mv 10.48550/arxiv.2309.12167
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2309_12167</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2309_12167</sourcerecordid><originalsourceid>FETCH-LOGICAL-a677-3446eebb2554285680dff8d25cb661b5a53c625d10330bca303d3576614856d53</originalsourceid><addsrcrecordid>eNotj81Kw0AUhWfjQqoP4Mp5gcT5yZ3EZal_hYJSA6WrcCdzRwaSKDNtsG_vWF0dOOfwwcfYjRRl1QCIO4zfYS6VFvelVNLUl2y_pZlwCNMHf6PoP-OIU098ndKREg8Tf6c4UyxScMR3ZJcp0WiHE98ep0MY82cOyB-C9xQpNzjwltIh867Yhcch0fV_Llj79NiuXorN6_N6tdwUaOq60FVliKxVAJVqwDTCed84Bb01RlpA0L1R4KTQWtgetdBOQ523bGQc6AW7_cOe3bqvGEaMp-7XsTs76h94G0xS</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing</title><source>arXiv.org</source><creator>Jiang, Shuyao ; Zeng, Ruiying ; Rao, Zihao ; Gu, Jiazhen ; Zhou, Yangfan ; Lyu, Michael R</creator><creatorcontrib>Jiang, Shuyao ; Zeng, Ruiying ; Rao, Zihao ; Gu, Jiazhen ; Zhou, Yangfan ; Lyu, Michael R</creatorcontrib><description>WebAssembly (Wasm) is a bytecode format originally serving as a compilation target for Web applications. It has recently been used increasingly on the server side, e.g., providing a safer, faster, and more portable alternative to Linux containers. With the popularity of server-side Wasm applications, it is essential to study performance issues (i.e., abnormal latency) in Wasm runtimes, as they may cause a significant impact on server-side applications. However, there is still a lack of attention to performance issues in server-side Wasm runtimes. In this paper, we design a novel differential testing approach WarpDiff to identify performance issues in server-side Wasm runtimes. The key insight is that in normal cases, the execution time of the same test case on different Wasm runtimes should follow an oracle ratio. We identify abnormal cases where the execution time ratio significantly deviates from the oracle ratio and subsequently locate the Wasm runtimes that cause the performance issues. We apply WarpDiff to test five popular server-side Wasm runtimes using 123 test cases from the LLVM test suite and demonstrate the top 10 abnormal cases we identified. We further conduct an in-depth analysis of these abnormal cases and summarize seven performance issues, all of which have been confirmed by the developers. We hope our work can inspire future investigation on improving Wasm runtime implementation and thus promoting the development of server-side Wasm applications.</description><identifier>DOI: 10.48550/arxiv.2309.12167</identifier><language>eng</language><subject>Computer Science - Software Engineering</subject><creationdate>2023-09</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2309.12167$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2309.12167$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Jiang, Shuyao</creatorcontrib><creatorcontrib>Zeng, Ruiying</creatorcontrib><creatorcontrib>Rao, Zihao</creatorcontrib><creatorcontrib>Gu, Jiazhen</creatorcontrib><creatorcontrib>Zhou, Yangfan</creatorcontrib><creatorcontrib>Lyu, Michael R</creatorcontrib><title>Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing</title><description>WebAssembly (Wasm) is a bytecode format originally serving as a compilation target for Web applications. It has recently been used increasingly on the server side, e.g., providing a safer, faster, and more portable alternative to Linux containers. With the popularity of server-side Wasm applications, it is essential to study performance issues (i.e., abnormal latency) in Wasm runtimes, as they may cause a significant impact on server-side applications. However, there is still a lack of attention to performance issues in server-side Wasm runtimes. In this paper, we design a novel differential testing approach WarpDiff to identify performance issues in server-side Wasm runtimes. The key insight is that in normal cases, the execution time of the same test case on different Wasm runtimes should follow an oracle ratio. We identify abnormal cases where the execution time ratio significantly deviates from the oracle ratio and subsequently locate the Wasm runtimes that cause the performance issues. We apply WarpDiff to test five popular server-side Wasm runtimes using 123 test cases from the LLVM test suite and demonstrate the top 10 abnormal cases we identified. We further conduct an in-depth analysis of these abnormal cases and summarize seven performance issues, all of which have been confirmed by the developers. We hope our work can inspire future investigation on improving Wasm runtime implementation and thus promoting the development of server-side Wasm applications.</description><subject>Computer Science - Software Engineering</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotj81Kw0AUhWfjQqoP4Mp5gcT5yZ3EZal_hYJSA6WrcCdzRwaSKDNtsG_vWF0dOOfwwcfYjRRl1QCIO4zfYS6VFvelVNLUl2y_pZlwCNMHf6PoP-OIU098ndKREg8Tf6c4UyxScMR3ZJcp0WiHE98ep0MY82cOyB-C9xQpNzjwltIh867Yhcch0fV_Llj79NiuXorN6_N6tdwUaOq60FVliKxVAJVqwDTCed84Bb01RlpA0L1R4KTQWtgetdBOQ523bGQc6AW7_cOe3bqvGEaMp-7XsTs76h94G0xS</recordid><startdate>20230921</startdate><enddate>20230921</enddate><creator>Jiang, Shuyao</creator><creator>Zeng, Ruiying</creator><creator>Rao, Zihao</creator><creator>Gu, Jiazhen</creator><creator>Zhou, Yangfan</creator><creator>Lyu, Michael R</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20230921</creationdate><title>Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing</title><author>Jiang, Shuyao ; Zeng, Ruiying ; Rao, Zihao ; Gu, Jiazhen ; Zhou, Yangfan ; Lyu, Michael R</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a677-3446eebb2554285680dff8d25cb661b5a53c625d10330bca303d3576614856d53</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Computer Science - Software Engineering</topic><toplevel>online_resources</toplevel><creatorcontrib>Jiang, Shuyao</creatorcontrib><creatorcontrib>Zeng, Ruiying</creatorcontrib><creatorcontrib>Rao, Zihao</creatorcontrib><creatorcontrib>Gu, Jiazhen</creatorcontrib><creatorcontrib>Zhou, Yangfan</creatorcontrib><creatorcontrib>Lyu, Michael R</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Jiang, Shuyao</au><au>Zeng, Ruiying</au><au>Rao, Zihao</au><au>Gu, Jiazhen</au><au>Zhou, Yangfan</au><au>Lyu, Michael R</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing</atitle><date>2023-09-21</date><risdate>2023</risdate><abstract>WebAssembly (Wasm) is a bytecode format originally serving as a compilation target for Web applications. It has recently been used increasingly on the server side, e.g., providing a safer, faster, and more portable alternative to Linux containers. With the popularity of server-side Wasm applications, it is essential to study performance issues (i.e., abnormal latency) in Wasm runtimes, as they may cause a significant impact on server-side applications. However, there is still a lack of attention to performance issues in server-side Wasm runtimes. In this paper, we design a novel differential testing approach WarpDiff to identify performance issues in server-side Wasm runtimes. The key insight is that in normal cases, the execution time of the same test case on different Wasm runtimes should follow an oracle ratio. We identify abnormal cases where the execution time ratio significantly deviates from the oracle ratio and subsequently locate the Wasm runtimes that cause the performance issues. We apply WarpDiff to test five popular server-side Wasm runtimes using 123 test cases from the LLVM test suite and demonstrate the top 10 abnormal cases we identified. We further conduct an in-depth analysis of these abnormal cases and summarize seven performance issues, all of which have been confirmed by the developers. We hope our work can inspire future investigation on improving Wasm runtime implementation and thus promoting the development of server-side Wasm applications.</abstract><doi>10.48550/arxiv.2309.12167</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2309.12167
ispartof
issn
language eng
recordid cdi_arxiv_primary_2309_12167
source arXiv.org
subjects Computer Science - Software Engineering
title Revealing Performance Issues in Server-side WebAssembly Runtimes via Differential Testing
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-04T10%3A36%3A24IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Revealing%20Performance%20Issues%20in%20Server-side%20WebAssembly%20Runtimes%20via%20Differential%20Testing&rft.au=Jiang,%20Shuyao&rft.date=2023-09-21&rft_id=info:doi/10.48550/arxiv.2309.12167&rft_dat=%3Carxiv_GOX%3E2309_12167%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true