(b *testing.B)
| 5 | ) |
| 6 | |
| 7 | func BenchmarkReadWriteFloat32(b *testing.B) { |
| 8 | var f float32 = 3.9081 |
| 9 | bts := AppendFloat32([]byte{}, f) |
| 10 | b.ResetTimer() |
| 11 | for i := 0; i < b.N; i++ { |
| 12 | bts = AppendFloat32(bts[0:0], f) |
| 13 | f, bts, _ = ReadFloat32Bytes(bts) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func BenchmarkReadWriteFloat64(b *testing.B) { |
| 18 | var f = 3.9081 |
nothing calls this directly
no test coverage detected
searching dependent graphs…