Skip to main content
edited title
Link
Nuke
  • 1.9k
  • 1
  • 7
  • 27

What is the ballpark performance overhead Performance of same logic with a contract using pallet-contracts vs. a native pallet (excluding metering)

Source Link
nazar-pc
  • 551
  • 3
  • 13

What is the ballpark performance overhead of pallet-contracts (excluding metering)

I'm wondering what is current state of the art of Substrate's pallet-contracts performance as compared to the same functional implementation as a pallet.

I acknowledge that different logic can have different cost, but it would still be useful to know if it is 2x inherently slower, 10x, 100x... It would help others to make a decision whether this is definitely not acceptable overhead or something that can be considered.

Specifically I'm curious about the cost without gas metering enabled, to get a sense of the baseline. Roughly the cost of running wasmi on top of wasmtime rather than natively, but I wasn't able to find benchmarks of those either.