以太坊智能合约中投机并发的实证研究
An Empirical Study of Speculative Concurrency in Ethereum Smart Contracts
摘要:
我们使用历史数据来估计并行执行以太坊智能合约的投机技术的潜在好处。我们使用一个简单的推测执行引擎,随着时间的推移,从以太坊区块链中重放采样块的交易跟踪。在这个引擎中,矿工试图并行执行块中的所有事务,回滚那些导致数据冲突的事务。然后按顺序执行中止的事务。验证器执行与矿工相同的调度。我们发现,我们的推测性技术估计从2016年开始加速约8倍,到2017年底下降到约2倍,其中加速使用gas成本或指令计数来衡量。我们还观察到,一个小的合同集负责许多数据冲突所造成的投机并发执行。
英文摘要:
We use historical data to estimate the potential benefit of speculative techniques for executing Ethereum smart contracts in parallel. We replay transaction traces of sampled blocks from the Ethereum blockchain over time, using a simple speculative execution engine. In this engine, miners attempt to execute all transactions in a block in parallel, rolling back those that cause data conflicts. Aborted transactions are then executed sequentially. Validators execute the same schedule as miners. We find that our speculative technique yields estimated speed-ups starting at about 8-fold in 2016, declining to about 2-fold at the end of 2017, where speed-up is measured using either gas costs or instruction counts. We also observe that a small set of contracts are responsible for many data conflicts resulting from speculative concurrent execution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。