(b *testing.B)
| 65 | } |
| 66 | |
| 67 | func BenchmarkSingleInsertPresent(b *testing.B) { |
| 68 | slm := NewShardLockMaps() |
| 69 | slm.Set("key", "value") |
| 70 | b.ResetTimer() |
| 71 | for i := 0; i < b.N; i++ { |
| 72 | slm.Set("key", "value") |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | func BenchmarkSingleInsertPresentSyncMap(b *testing.B) { |
| 77 | var m sync.Map |
nothing calls this directly
no test coverage detected