File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments