(b *testing.B)
| 247 | } |
| 248 | |
| 249 | func BenchmarkReadGoSyncMapUint(b *testing.B) { |
| 250 | m := setupGoSyncMap(b) |
| 251 | b.ResetTimer() |
| 252 | b.RunParallel(func(pb *testing.PB) { |
| 253 | for pb.Next() { |
| 254 | for i := uintptr(0); i < benchmarkItemCount; i++ { |
| 255 | j, _ := m.Load(i) |
| 256 | if j != i { |
| 257 | b.Fail() |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | }) |
| 262 | } |
| 263 | |
| 264 | func BenchmarkReadGoSyncMapWithWritesUint(b *testing.B) { |
| 265 | m := setupGoSyncMap(b) |
nothing calls this directly
no test coverage detected
searching dependent graphs…