论文标题
VM问题:在区块链智能合约的性能中,WASM VM和EVM的比较
VM Matters: A Comparison of WASM VMs and EVMs in the Performance of Blockchain Smart Contracts
论文作者
论文摘要
WebAssemly是Web应用程序的新兴运行时,几乎所有浏览器都得到了支持。最近,WebAssembly进一步被认为是区块链应用程序的下一代环境,并已被以太坊(即ewasm)采用,即替换最先进的EVM。但是,目前的EWAST在区块链客户端上是否胜过EVM的表现仍然尚不清楚。本文进行了第一个测量研究,以衡量WASM VM和EVM上的性能,以在区块链上执行智能合约。令我们惊讶的是,当前的WASM VM并未在预期的性能中执行。 WASM引入的高架实际上是不平凡的。我们的结果突出了在实践中部署WASM时面临的挑战,并为改进空间提供了深刻的影响。
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.