Skip to content

Commit b17ebd8

Browse files
committed
add readme
1 parent 8e7304b commit b17ebd8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Benchmark Rust EVM
2+
3+
To run the benchmark,
4+
5+
``` bash
6+
cargo run --release
7+
```
8+
9+
It will
10+
* First deploy a compiled ERC20 contract
11+
* Get the address of the deployed contract
12+
* Execute a transfer call method from the contract by microbenchmark for 30secs
13+
* Call the same method for 100_000 times
14+
15+
16+
Sample results:
17+
18+
``` text
19+
================================================================================
20+
EXECUTE contract deploy
21+
RETURNS Exit((Succeed(Returned), Some(0xc15d2ba57d126e6603240e89437efd419ce329d2), []))
22+
Contract deployed to adderss Some(0xc15d2ba57d126e6603240e89437efd419ce329d2)
23+
execute_contract_method (30.2s) ... 20_697.744 ns/iter (0.991 R²)
24+
100000 runs, total 2043ms, average: 0.02043ms
25+
```

0 commit comments

Comments
 (0)