From e0dd48cc674f3b4cbdea3a403f1754dbac0e4cd2 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 25 Mar 2023 11:46:29 +0700 Subject: [PATCH] DomainRange --- core/vm/runtime/runtime_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 24246fb02..04a5f69ae 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -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) @@ -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)