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

Function BenchmarkAppendFloat64

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

Source from the content-addressed store, hash-verified

218}
219
220func BenchmarkAppendFloat64(b *testing.B) {
221 f := float64(3.14159)
222 buf := make([]byte, 0, 9)
223 b.SetBytes(9)
224 b.ReportAllocs()
225 b.ResetTimer()
226 for i := 0; i < b.N; i++ {
227 AppendFloat64(buf[0:0], f)
228 }
229}
230
231func TestAppendFloat32(t *testing.T) {
232 f := float32(3.14159)

Callers

nothing calls this directly

Calls 1

AppendFloat64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…