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

Function benchmarkMapString_Set

orderedmap_test.go:598–606  ·  view source on GitHub ↗
(multiplier int)

Source from the content-addressed store, hash-verified

596}
597
598func benchmarkMapString_Set(multiplier int) func(b *testing.B) {
599 return func(b *testing.B) {
600 m := make(map[string]bool)
601 a := "12345678"
602 for i := 0; i < b.N*multiplier; i++ {
603 m[a+strconv.Itoa(i)] = true
604 }
605 }
606}
607
608func BenchmarkMapString_Set(b *testing.B) {
609 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…