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

Function BenchmarkReadBoolBytes

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

Source from the content-addressed store, hash-verified

253}
254
255func BenchmarkReadBoolBytes(b *testing.B) {
256 buf := []byte{mtrue, mfalse, mtrue, mfalse}
257 b.SetBytes(1)
258 b.ReportAllocs()
259 b.ResetTimer()
260 o := buf
261 for i := 0; i < b.N; i++ {
262 _, buf, _ = ReadBoolBytes(buf)
263 if len(buf) == 0 {
264 buf = o
265 }
266 }
267}
268
269func TestReadInt64Bytes(t *testing.T) {
270 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 1

ReadBoolBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…