MCPcopy
hub / github.com/cornelk/hashmap / BenchmarkReadHaxMapUint

Function BenchmarkReadHaxMapUint

benchmarks/benchmark_test.go:143–157  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

141}
142
143func BenchmarkReadHaxMapUint(b *testing.B) {
144 m := setupHaxMap(b)
145 b.ResetTimer()
146
147 b.RunParallel(func(pb *testing.PB) {
148 for pb.Next() {
149 for i := uintptr(0); i < benchmarkItemCount; i++ {
150 j, _ := m.Get(i)
151 if j != i {
152 b.Fail()
153 }
154 }
155 }
156 })
157}
158
159func BenchmarkReadHaxMapWithWritesUint(b *testing.B) {
160 m := setupHaxMap(b)

Callers

nothing calls this directly

Calls 3

setupHaxMapFunction · 0.85
NextMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…