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

Function BenchmarkWriteUint64

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

Source from the content-addressed store, hash-verified

354}
355
356func BenchmarkWriteUint64(b *testing.B) {
357 wr := NewWriter(Nowhere)
358 b.SetBytes(9)
359 b.ReportAllocs()
360 b.ResetTimer()
361 for i := 0; i < b.N; i++ {
362 wr.WriteUint64(tuint64)
363 }
364}
365
366func TestWriteBytes(t *testing.T) {
367 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

WriteUint64Method · 0.95
NewWriterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…