MCPcopy
hub / github.com/tinylib/msgp / BenchmarkReadNilByte

Function BenchmarkReadNilByte

msgp/read_bytes_test.go:160–168  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

158}
159
160func BenchmarkReadNilByte(b *testing.B) {
161 buf := []byte{mnil}
162 b.SetBytes(1)
163 b.ReportAllocs()
164 b.ResetTimer()
165 for i := 0; i < b.N; i++ {
166 ReadNilBytes(buf)
167 }
168}
169
170func TestReadFloat64Bytes(t *testing.T) {
171 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 1

ReadNilBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…