(b *testing.B)
| 124 | } |
| 125 | |
| 126 | func BenchmarkReadHashMapString(b *testing.B) { |
| 127 | m, keys := setupHashMapString(b) |
| 128 | b.ResetTimer() |
| 129 | |
| 130 | b.RunParallel(func(pb *testing.PB) { |
| 131 | for pb.Next() { |
| 132 | for i := 0; i < benchmarkItemCount; i++ { |
| 133 | s := keys[i] |
| 134 | sVal, _ := m.Get(s) |
| 135 | if sVal != s { |
| 136 | b.Fail() |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | func BenchmarkReadHaxMapUint(b *testing.B) { |
| 144 | m := setupHaxMap(b) |
nothing calls this directly
no test coverage detected
searching dependent graphs…