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

Function BenchmarkListBuilder_Prepend

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

Source from the content-addressed store, hash-verified

482}
483
484func BenchmarkListBuilder_Prepend(b *testing.B) {
485 b.ReportAllocs()
486 builder := NewListBuilder[int]()
487 for i := 0; i < b.N; i++ {
488 builder.Prepend(i)
489 }
490}
491
492func BenchmarkListBuilder_Set(b *testing.B) {
493 const n = 10000

Callers

nothing calls this directly

Calls 1

PrependMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…