MCPcopy
hub / github.com/tinylib/msgp / BenchmarkWriteInt64

Function BenchmarkWriteInt64

msgp/write_test.go:323–331  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

321}
322
323func BenchmarkWriteInt64(b *testing.B) {
324 wr := NewWriter(Nowhere)
325 b.SetBytes(9)
326 b.ReportAllocs()
327 b.ResetTimer()
328 for i := 0; i < b.N; i++ {
329 wr.WriteInt64(tint64)
330 }
331}
332
333func TestWriteUint64(t *testing.T) {
334 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

WriteInt64Method · 0.95
NewWriterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…