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

Function benchmarkBigMapWithCapacity_Set

orderedmap_test.go:854–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852}
853
854func benchmarkBigMapWithCapacity_Set() func(b *testing.B) {
855 return func(b *testing.B) {
856 for j := 0; j < b.N; j++ {
857 m := orderedmap.NewOrderedMapWithCapacity(10000000)
858 for i := 0; i < 10000000; i++ {
859 m.Set(i, true)
860 }
861 }
862 }
863}
864
865func BenchmarkBigMapWithCapacity_Set(b *testing.B) {
866 benchmarkBigMapWithCapacity_Set()(b)

Callers 1

Calls 2

SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…