MCPcopy
hub / github.com/segmentio/ksuid / BenchmarkAppend

Function BenchmarkAppend

ksuid_test.go:330–337  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

328}
329
330func BenchmarkAppend(b *testing.B) {
331 a := make([]byte, 0, stringEncodedLength)
332 k := New()
333
334 for i := 0; i != b.N; i++ {
335 k.Append(a)
336 }
337}
338
339func BenchmarkString(b *testing.B) {
340 k := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
AppendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…