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

Function BenchmarkReadFloat64Bytes

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

Source from the content-addressed store, hash-verified

186}
187
188func BenchmarkReadFloat64Bytes(b *testing.B) {
189 f := float64(3.14159)
190 buf := make([]byte, 0, 9)
191 buf = AppendFloat64(buf, f)
192 b.SetBytes(int64(len(buf)))
193 b.ReportAllocs()
194 b.ResetTimer()
195 for i := 0; i < b.N; i++ {
196 ReadFloat64Bytes(buf)
197 }
198}
199
200func TestReadFloat32Bytes(t *testing.T) {
201 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

AppendFloat64Function · 0.85
ReadFloat64BytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…