mirror of https://github.com/ethereum/go-ethereum
cmd/evm: restore --bench flag to evm statetest (#31055)
Refactoring of the `evm` command moved where some commands were valid. One command, `--bench`, used to work in `evm statetest`. The pluming is still in place. This PR puts the `--bench` flag in the place the trace flags were moved, and adds tests to validate the bench flag operates in `run` and `statetest` --------- Co-authored-by: Felix Lange <fjl@twurst.com>pull/30971/merge
parent
4af9af419d
commit
c43faa3d9d
@ -0,0 +1,15 @@ |
||||
\[ |
||||
\{ |
||||
"name": "00000006-naivefuzz-0", |
||||
"pass": false, |
||||
"stateRoot": "0xad1024c87b5548e77c937aa50f72b6cb620d278f4dd79bae7f78f71ff75af458", |
||||
"fork": "London", |
||||
"error": "post state root mismatch: got ad1024c87b5548e77c937aa50f72b6cb620d278f4dd79bae7f78f71ff75af458, want 0000000000000000000000000000000000000000000000000000000000000000", |
||||
"benchStats": \{ |
||||
"time": \d+, |
||||
"allocs": \d+, |
||||
"bytesAllocated": \d+, |
||||
"gasUsed": \d+ |
||||
\} |
||||
\} |
||||
\] |
@ -0,0 +1,4 @@ |
||||
EVM gas used: \d+ |
||||
execution time: \d+\.\d+.s |
||||
allocations: \d+ |
||||
allocated bytes: \d+ |
Loading…
Reference in new issue