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

Function BenchmarkListBuilder_Append

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

Source from the content-addressed store, hash-verified

474}
475
476func BenchmarkListBuilder_Append(b *testing.B) {
477 b.ReportAllocs()
478 builder := NewListBuilder[int]()
479 for i := 0; i < b.N; i++ {
480 builder.Append(i)
481 }
482}
483
484func BenchmarkListBuilder_Prepend(b *testing.B) {
485 b.ReportAllocs()

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…