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

Function BenchmarkReadFloat32Bytes

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

Source from the content-addressed store, hash-verified

216}
217
218func BenchmarkReadFloat32Bytes(b *testing.B) {
219 f := float32(3.14159)
220 buf := make([]byte, 0, 5)
221 buf = AppendFloat32(buf, f)
222 b.SetBytes(int64(len(buf)))
223 b.ReportAllocs()
224 b.ResetTimer()
225 for i := 0; i < b.N; i++ {
226 ReadFloat32Bytes(buf)
227 }
228}
229
230func TestReadBoolBytes(t *testing.T) {
231 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

AppendFloat32Function · 0.85
ReadFloat32BytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…