Skip to content

Commit

Permalink
DomainRange
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Mar 25, 2023
1 parent 5445058 commit e0dd48c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/vm/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func TestBlockhash(t *testing.T) {

// benchmarkNonModifyingCode benchmarks code, but if the code modifies the
// state, this should not be used, since it does not reset the state between runs.
func benchmarkNonModifyingCode(gas uint64, code []byte, name string, b *testing.B) { //nolint:unparam
func benchmarkNonModifyingCode(b *testing.B, gas uint64, code []byte, name string) { //nolint:unparam
cfg := new(Config)
setDefaults(cfg)
_, tx := memdb.NewTestTx(b)
Expand Down Expand Up @@ -479,12 +479,12 @@ func BenchmarkSimpleLoop(b *testing.B) {
// Tracer: tracer,
// }})
// 100M gas
benchmarkNonModifyingCode(100000000, staticCallIdentity, "staticcall-identity-100M", b)
benchmarkNonModifyingCode(100000000, callIdentity, "call-identity-100M", b)
benchmarkNonModifyingCode(100000000, loopingCode, "loop-100M", b)
benchmarkNonModifyingCode(100000000, callInexistant, "call-nonexist-100M", b)
benchmarkNonModifyingCode(100000000, callEOA, "call-EOA-100M", b)
benchmarkNonModifyingCode(100000000, calllRevertingContractWithInput, "call-reverting-100M", b)
benchmarkNonModifyingCode(b, 100000000, staticCallIdentity, "staticcall-identity-100M")
benchmarkNonModifyingCode(b, 100000000, callIdentity, "call-identity-100M")
benchmarkNonModifyingCode(b, 100000000, loopingCode, "loop-100M")
benchmarkNonModifyingCode(b, 100000000, callInexistant, "call-nonexist-100M")
benchmarkNonModifyingCode(b, 100000000, callEOA, "call-EOA-100M")
benchmarkNonModifyingCode(b, 100000000, calllRevertingContractWithInput, "call-reverting-100M")

//benchmarkNonModifyingCode(10000000, staticCallIdentity, "staticcall-identity-10M", b)
//benchmarkNonModifyingCode(10000000, loopingCode, "loop-10M", b)
Expand Down

0 comments on commit e0dd48c

Please sign in to comment.