MCPcopy Create free account
hub / github.com/elliotchance/orderedmap / benchmarkMap_Set

Function benchmarkMap_Set

orderedmap_test.go:380–387  ·  view source on GitHub ↗
(multiplier int)

Source from the content-addressed store, hash-verified

378}
379
380func benchmarkMap_Set(multiplier int) func(b *testing.B) {
381 return func(b *testing.B) {
382 m := make(map[int]bool)
383 for i := 0; i < b.N*multiplier; i++ {
384 m[i] = true
385 }
386 }
387}
388
389func BenchmarkMap_Set(b *testing.B) {
390 benchmarkMap_Set(1)(b)

Callers 1

BenchmarkMap_SetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…