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

Function BenchmarkList_Prepend

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

Source from the content-addressed store, hash-verified

404}
405
406func BenchmarkList_Prepend(b *testing.B) {
407 b.ReportAllocs()
408 l := NewList[int]()
409 for i := 0; i < b.N; i++ {
410 l = l.Prepend(i)
411 }
412}
413
414func BenchmarkList_Set(b *testing.B) {
415 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…