MCPcopy Create free account
hub / github.com/benbjohnson/immutable / BenchmarkMap_Set

Function BenchmarkMap_Set

immutable_test.go:1422–1428  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1420}
1421
1422func BenchmarkMap_Set(b *testing.B) {
1423 b.ReportAllocs()
1424 m := NewMap[int, int](nil)
1425 for i := 0; i < b.N; i++ {
1426 m = m.Set(i, i)
1427 }
1428}
1429
1430func BenchmarkMap_Delete(b *testing.B) {
1431 const n = 10000000

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…