Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Benchmark NEAR EVM vs native WASM contract vs Ethereum #8

Open
ilblackdragon opened this issue Feb 22, 2020 · 3 comments
Open

Benchmark NEAR EVM vs native WASM contract vs Ethereum #8

ilblackdragon opened this issue Feb 22, 2020 · 3 comments

Comments

@ilblackdragon
Copy link
Member

There are two questions that come up:

  • How much slower contract in Solidity in near-evm compared to the same contract in WASM
  • What is the speed compared to Ethereum

We need to figure out what is an apple to apple comparison here and evaluate it.

For WASM vs NEAR EVM we can just have a simple contract written in both and evaluate it on the same node.
Are there any default benchmarks for Ethereum @prestwich we can reuse?

@prestwich
Copy link
Contributor

The best approach here would be to choose a standard contract, and run a suite of transactions on both ganache and near-evm. I'll look at automating this in the near future.

@ilblackdragon
Copy link
Member Author

Just leaving it here for tracking.
Gas usage in near-evm tests for different ops:

Activity gas
Deploy evm 14_436_814_659_810
deploy_code(cryptozombies) 2_323_274_445_688
createRandomZombie 2_292_186_711_135
evm_balance_of_near_account 2_291_600_327_838

For context, block limit is 1_000_000_000_000_000

@ewilz
Copy link
Contributor

ewilz commented Aug 13, 2020

started doing some benchmarking on this branch, but paused on the efforts when precompiles prevented us from being able to deploy the contract:

https://github.com/near/near-evm/tree/benchmark

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants