WebAssemly is an emerging runtime for Web applications and has been supported in almost all browsers. Recently, WebAssembly is further regarded to be a the next-generation environment for blockchain applications, and has been adopted by Ethereum, namely eWASM, to replace the state-of-the-art EVM. However, whether and how well current eWASM outperforms EVM on blockchain clients is still unknown. This paper conducts the first measurement study, to measure the performance on WASM VM and EVM for executing smart contracts on blockchain. To our surprise, the current WASM VM does not perform in expected performance. The overhead introduced by WASM is really non-trivial. Our results highlight the challenges when deploying WASM in practice, and provide insightful implications for improvement space.
翻译:WebAssemly 是一个新兴的网络应用运行时间,几乎所有浏览器都支持它。 最近,WebAssembly被进一步认为是块链应用的下一代环境,并且被Etheyum(eWASM)采用,以取代最先进的EVM。然而,目前的电子WebAsemly是否以及如何在块链客户中优于EVM。本文进行了第一次测量研究,以衡量WSM VM和EVM在块链上执行智能合同的绩效。我们惊讶的是,目前的WSM VM VM没有在预期的绩效中发挥作用。WASM引入的间接费用其实是非三轨的。我们的结果突出了在实际中部署WASM时所面临的挑战,并为改进空间提供了深刻的影响。