(multiplier int)
| 378 | } |
| 379 | |
| 380 | func benchmarkMap_Set(multiplier int) func(b *testing.B) { |
| 381 | return func(b *testing.B) { |
| 382 | m := make(map[int]bool) |
| 383 | for i := 0; i < b.N*multiplier; i++ { |
| 384 | m[i] = true |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func BenchmarkMap_Set(b *testing.B) { |
| 390 | benchmarkMap_Set(1)(b) |
no outgoing calls
no test coverage detected
searching dependent graphs…