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

Function BenchmarkWriteHashMapUint

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

Source from the content-addressed store, hash-verified

323}
324
325func BenchmarkWriteHashMapUint(b *testing.B) {
326 m := hashmap.New[uintptr, uintptr]()
327 b.ResetTimer()
328
329 for n := 0; n < b.N; n++ {
330 for i := uintptr(0); i < benchmarkItemCount; i++ {
331 m.Set(i, i)
332 }
333 }
334}
335
336func BenchmarkWriteGoMapMutexUint(b *testing.B) {
337 m := make(map[uintptr]uintptr)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
SetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…