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

Function BenchmarkAppendInt64

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

Source from the content-addressed store, hash-verified

271}
272
273func BenchmarkAppendInt64(b *testing.B) {
274 is := []int64{0, 1, -5, -50, int64(tint16), int64(tint32), tint64}
275 l := len(is)
276 buf := make([]byte, 0, 9)
277 b.ReportAllocs()
278 b.ResetTimer()
279 for i := 0; i < b.N; i++ {
280 AppendInt64(buf[0:0], is[i%l])
281 }
282}
283
284func TestAppendUint64(t *testing.T) {
285 us := []uint64{0, 1, uint64(tuint16), uint64(tuint32), tuint64}

Callers

nothing calls this directly

Calls 1

AppendInt64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…