diff --git a/src/sync/map_bench_test.go b/src/sync/map_bench_test.go index c93208a5113..fb9eb25432d 100644 --- a/src/sync/map_bench_test.go +++ b/src/sync/map_bench_test.go @@ -539,9 +539,7 @@ func BenchmarkClear(b *testing.B) { perG: func(b *testing.B, pb *testing.PB, i int, m mapInterface) { for ; pb.Next(); i++ { k, v := i%256, i%256 - m.Clear() - m.Store(k, v) } },