mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
DomainRange
This commit is contained in:
parent
5445058190
commit
e0dd48cc67
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user