(slm ShardLockMaps, b *testing.B)
| 311 | } |
| 312 | |
| 313 | func benchmarkMultiInsertDifferentWithMap(slm ShardLockMaps, b *testing.B) { |
| 314 | finished := make(chan struct{}, b.N) |
| 315 | _, set := GetSet(slm, finished) |
| 316 | for i := 0; i < b.N; i++ { |
| 317 | set(strconv.Itoa(i), strconv.Itoa(i)) |
| 318 | } |
| 319 | for i := 0; i < b.N; i++ { |
| 320 | <-finished |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | func benchmarkMultiGetSetDifferentWithMap(slm ShardLockMaps, b *testing.B) { |
| 325 | finished := make(chan struct{}, 2*b.N) |
no test coverage detected