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

Function BenchmarkAppendFloat32

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

Source from the content-addressed store, hash-verified

243}
244
245func BenchmarkAppendFloat32(b *testing.B) {
246 f := float32(3.14159)
247 buf := make([]byte, 0, 5)
248 b.SetBytes(5)
249 b.ReportAllocs()
250 b.ResetTimer()
251 for i := 0; i < b.N; i++ {
252 AppendFloat32(buf[0:0], f)
253 }
254}
255
256func TestAppendInt64(t *testing.T) {
257 is := []int64{0, 1, -5, -50, int64(tint16), int64(tint32), tint64}

Callers

nothing calls this directly

Calls 1

AppendFloat32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…