Shuyu Zheng, Haoyu Wang, Lei Wu, Gang Huang, Xuanzhe Liu
2020.12.2ACM Transactions on Modeling and Performance Evaluation of Computing Systems
tlooto Summary
This article conducts the first measurement study to understand the performance on WASM VMs and EVM for executing smart contracts for blockchain-based applications and finds that the current WASM VM does not provide expected satisfactory performance.
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 on WASM 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.
Citation format
ZHENG, Shuyu, et al. VM matters: A comparison of WASM VMs and EVMs in the performance of blockchain smart contracts [preprint]. arXiv, 2020. arXiv:2012.01032.