(b *testing.B)
| 7 | ) |
| 8 | |
| 9 | func BenchmarkItems(b *testing.B) { |
| 10 | slm := NewShardLockMaps() |
| 11 | |
| 12 | for i := 0; i < 10000; i++ { |
| 13 | slm.Set(strconv.Itoa(i), TestUser{strconv.Itoa(i)}) |
| 14 | } |
| 15 | for i := 0; i < b.N; i++ { |
| 16 | slm.Items() |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func BenchmarkKeys(b *testing.B) { |
| 21 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected