MCPcopy Index your code
hub / github.com/tinylib/msgp / BenchmarkAppendBytesHeader

Function BenchmarkAppendBytesHeader

msgp/write_bytes_test.go:117–128  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

115}
116
117func BenchmarkAppendBytesHeader(b *testing.B) {
118 buf := make([]byte, 0, 9)
119 N := b.N / 4
120 b.ReportAllocs()
121 b.ResetTimer()
122 for range N {
123 AppendBytesHeader(buf[:0], 0)
124 AppendBytesHeader(buf[:0], uint32(tint8))
125 AppendBytesHeader(buf[:0], tuint16)
126 AppendBytesHeader(buf[:0], tuint32)
127 }
128}
129
130func TestAppendNil(t *testing.T) {
131 var bts []byte

Callers

nothing calls this directly

Calls 1

AppendBytesHeaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…