DomainRange

This commit is contained in:
alex.sharov 2023-03-25 11:46:29 +07:00
parent 5445058190
commit e0dd48cc67

View File

@ -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)