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

Function BenchmarkReadWriteFloat64

msgp/floatbench_test.go:17–25  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

15}
16
17func BenchmarkReadWriteFloat64(b *testing.B) {
18 var f = 3.9081
19 bts := AppendFloat64([]byte{}, f)
20 b.ResetTimer()
21 for i := 0; i < b.N; i++ {
22 bts = AppendFloat64(bts[0:0], f)
23 f, bts, _ = ReadFloat64Bytes(bts)
24 }
25}

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…