I was researching on benchmarks for #Polkadot Ethereum-compatibility. I might have bad news: Polkadot Hub / revive, which we spent years to develop, may even be slower than existing parachains like #Moonbeam. The main reason is the explosive increase in PVM contract size.
In a Polkadot parachain and especially for a smart contract chain, the usual major limitation is PoV size, not the execution time. (Unless we only talk about the TPS of executing millions of system.remark, but those are not useful.)
Compiling a Solidity contract to PolkaVM, compared with compiling to EVM bytecode, has a large penalty of contract size increase. Currently the normal case is 10x, sometimes even 80x (for compute-heavy contracts). Even if everything is optimized, the theoretical limit is 4x.
This means that a PolkaVM contract will occupy an explosively larger PoV space compared with an equivalent EVM contract. In turn, we'll be able to fit much less contracts up to the PoV size limit, which means much less throughput.
As Knuth wrote, premature optimization is the root of all evil (or at least most of it) in programming. A really expensive lessons on what not to do when optimizing software. Find the bottleneck first, and then optimize it. Don't fall for the trap of "cool tech".
The content on this page is provided by third parties. Unless otherwise stated, OKX TR is not the author of the cited article(s) and does not claim any copyright in the materials. The content is provided for informational purposes only and does not represent the views of OKX TR. It is not intended to be an endorsement of any kind and should not be considered investment advice or a solicitation to buy or sell digital assets. To the extent generative AI is utilized to provide summaries or other information, such AI generated content may be inaccurate or inconsistent. Please read the linked article for more details and information. OKX TR is not responsible for content hosted on third party sites. Digital asset holdings, including stablecoins and NFTs, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition.