Title | VM Matters: A Comparison of WASM VMs and EVMs in the Performance of Blockchain Smart Contracts |
Authors | Zhang, Yixuan Zheng, Shuyu Wang, Haoyu Wu, Lei Huang, Gang Liu, Xuanzhe |
Affiliation | Peking Univ, Minist Educ, Key Lab High Confidence Software Technol, 5 Yiheyuan Rd, Beijing 100091, Peoples R China Peking Univ, Sch Comp Sci, 5 Yiheyuan Rd, Beijing 100091, Peoples R China Peking Univ, 5 Yiheyuan Rd, Beijing 100091, Peoples R China Huazhong Univ Sci & Technol, 1037 Luoyu Rd, Wuhan 430074, Hubei, Peoples R China Zhejiang Univ, 866 Yuhangtang Rd, Hangzhou 310058, Zhejiang, Peoples R China Natl Key Lab Data Space Technol & Syst, 5 Yiheyuan Rd, Beijing 100091, Peoples R China |
Issue Date | Jun-2024 |
Publisher | ACM TRANSACTIONS ON MODELING AND PERFORMANCE EVALUATION OF COMPUTING SYSTEMS |
Abstract | Beyond an emerging popular web applications runtime supported in almost all commodity browsers, WebAssembly (WASM) is further regarded to be the next-generation execution environment for blockchain-based applications. Indeed, many popular blockchain platforms such as EOSIO and NEAR have adopted WASM-based execution engines. Most recently, WASM has been favored by Ethereum, the largest smart contract platform, to replace the state-of-the-art EVM. However, whether and how well current WASM outperforms EVM on blockchain clients is still unknown. This article conducts the first measurement study to understand the performance onWASM VMs and EVM for executing smart contracts for blockchain-based applications. To our surprise, the current WASM VM does not provide expected satisfactory performance. The overhead introduced by WASM is really non-trivial. Our results shed the light on challenges when deploying WASM in practice, and provide insightful implications for improvement space. |
URI | http://hdl.handle.net/20.500.11897/709952 |
ISSN | 2376-3639 |
DOI | 10.1145/3641103 |
Indexed | ESCI |
Appears in Collections: | 高可信软件技术教育部重点实验室 信息科学技术学院 |