This commit is contained in:
Jared Wasinger 2024-11-21 19:45:29 +07:00
parent 095b466434
commit dc78fceb7a

View file

@ -88,7 +88,6 @@ func timedExec(bench bool, execFunc func() ([]byte, uint64, error)) (output []by
var gasUsed uint64 var gasUsed uint64
output, gasUsed, execErr = execFunc() output, gasUsed, execErr = execFunc()
var benchErr error var benchErr error
testing.Init()
result := testing.Benchmark(func(b *testing.B) { result := testing.Benchmark(func(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
haveOutput, haveGasUsed, haveErr := execFunc() haveOutput, haveGasUsed, haveErr := execFunc()