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

Function benchmarkBigMapWithCapacity_Set

v2/orderedmap_test.go:820–829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818}
819
820func benchmarkBigMapWithCapacity_Set() func(b *testing.B) {
821 return func(b *testing.B) {
822 for j := 0; j < b.N; j++ {
823 m := orderedmap.NewOrderedMapWithCapacity[int, bool](10000000)
824 for i := 0; i < 10000000; i++ {
825 m.Set(i, true)
826 }
827 }
828 }
829}
830
831func BenchmarkBigMapWithCapacity_Set(b *testing.B) {
832 benchmarkBigMapWithCapacity_Set()(b)

Callers 1

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…