(b *testing.B)
| 49 | } |
| 50 | |
| 51 | func BenchmarkSingleInsertAbsent(b *testing.B) { |
| 52 | slm := NewShardLockMaps() |
| 53 | b.ResetTimer() |
| 54 | for i := 0; i < b.N; i++ { |
| 55 | slm.Set(strconv.Itoa(i), "value") |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func BenchmarkSingleInsertAbsentSyncMap(b *testing.B) { |
| 60 | var m sync.Map |
nothing calls this directly
no test coverage detected