diff --git a/core/bench_test.go b/core/bench_test.go index 9879f1d30f..932188f8e2 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -326,7 +326,6 @@ func benchReadChain(b *testing.B, full bool, count uint64) { db.Close() options := DefaultConfig().WithArchive(true) b.ReportAllocs() - b.ResetTimer() for b.Loop() { pdb, err = pebble.New(dir, 1024, 128, "", false) if err != nil { diff --git a/core/rlp_test.go b/core/rlp_test.go index 9304fafcc6..69efa82551 100644 --- a/core/rlp_test.go +++ b/core/rlp_test.go @@ -149,7 +149,6 @@ func BenchmarkHashing(b *testing.B) { var got common.Hash var hasher = sha3.NewLegacyKeccak256() b.Run("iteratorhashing", func(b *testing.B) { - b.ResetTimer() for b.Loop() { var hash common.Hash it, err := rlp.NewListIterator(bodyRlp) @@ -172,7 +171,6 @@ func BenchmarkHashing(b *testing.B) { }) var exp common.Hash b.Run("fullbodyhashing", func(b *testing.B) { - b.ResetTimer() for b.Loop() { var body types.Body rlp.DecodeBytes(bodyRlp, &body) @@ -182,7 +180,6 @@ func BenchmarkHashing(b *testing.B) { } }) b.Run("fullblockhashing", func(b *testing.B) { - b.ResetTimer() for b.Loop() { var block types.Block rlp.DecodeBytes(blockRlp, &block)