(b *testing.B)
| 115 | } |
| 116 | |
| 117 | func BenchmarkBlockCallback16(b *testing.B) { |
| 118 | set := newBenchSet() |
| 119 | b.ResetTimer() |
| 120 | total := 0 |
| 121 | for i := 0; i < b.N; i++ { |
| 122 | set.IterBlockCallback(16, func(vs []int) { |
| 123 | for v := range vs { |
| 124 | total += v |
| 125 | } |
| 126 | }) |
| 127 | } |
| 128 | _ = total |
| 129 | } |
| 130 | |
| 131 | func BenchmarkBlockCallback32(b *testing.B) { |
| 132 | set := newBenchSet() |
nothing calls this directly
no test coverage detected