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

Function benchmarkOrderedMapString_Set

orderedmap_test.go:612–620  ·  view source on GitHub ↗
(multiplier int)

Source from the content-addressed store, hash-verified

610}
611
612func benchmarkOrderedMapString_Set(multiplier int) func(b *testing.B) {
613 return func(b *testing.B) {
614 m := orderedmap.NewOrderedMap()
615 a := "12345678"
616 for i := 0; i < b.N*multiplier; i++ {
617 m.Set(a+strconv.Itoa(i), true)
618 }
619 }
620}
621
622func BenchmarkOrderedMapString_Set(b *testing.B) {
623 benchmarkOrderedMapString_Set(1)(b)

Callers 1

Calls 2

SetMethod · 0.95
NewOrderedMapFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…