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

Function benchmarkMapString_Set

v2/orderedmap_test.go:591–599  ·  view source on GitHub ↗
(multiplier int)

Source from the content-addressed store, hash-verified

589}
590
591func benchmarkMapString_Set(multiplier int) func(b *testing.B) {
592 return func(b *testing.B) {
593 m := make(map[string]bool)
594 a := "12345678"
595 for i := 0; i < b.N*multiplier; i++ {
596 m[a+strconv.Itoa(i)] = true
597 }
598 }
599}
600
601func BenchmarkMapString_Set(b *testing.B) {
602 benchmarkMapString_Set(1)(b)

Callers 1

BenchmarkMapString_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…