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

Function BenchmarkList_Append

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

Source from the content-addressed store, hash-verified

396}
397
398func BenchmarkList_Append(b *testing.B) {
399 b.ReportAllocs()
400 l := NewList[int]()
401 for i := 0; i < b.N; i++ {
402 l = l.Append(i)
403 }
404}
405
406func BenchmarkList_Prepend(b *testing.B) {
407 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…