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

Function benchmarkOrderedMap_Set

orderedmap_test.go:393–400  ·  view source on GitHub ↗
(multiplier int)

Source from the content-addressed store, hash-verified

391}
392
393func benchmarkOrderedMap_Set(multiplier int) func(b *testing.B) {
394 return func(b *testing.B) {
395 m := orderedmap.NewOrderedMap()
396 for i := 0; i < b.N*multiplier; i++ {
397 m.Set(i, true)
398 }
399 }
400}
401
402func BenchmarkOrderedMap_Set(b *testing.B) {
403 benchmarkOrderedMap_Set(1)(b)

Callers 2

TestSetFunction · 0.70
BenchmarkOrderedMap_SetFunction · 0.70

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…