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

Function setupGoSyncMap

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

Source from the content-addressed store, hash-verified

58}
59
60func setupGoSyncMap(b *testing.B) *sync.Map {
61 b.Helper()
62
63 m := &sync.Map{}
64 for i := uintptr(0); i < benchmarkItemCount; i++ {
65 m.Store(i, i)
66 }
67
68 return m
69}
70
71func setupGoMapString(b *testing.B) (map[string]string, []string) {
72 b.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…