MCPcopy Create free account
hub / github.com/tinylib/msgp / BenchmarkAppendTime

Function BenchmarkAppendTime

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

Source from the content-addressed store, hash-verified

410}
411
412func BenchmarkAppendTime(b *testing.B) {
413 t := time.Now()
414 b.SetBytes(15)
415 buf := make([]byte, 0, 15)
416 b.ReportAllocs()
417 b.ResetTimer()
418 for i := 0; i < b.N; i++ {
419 AppendTime(buf[0:0], t)
420 }
421}
422
423func BenchmarkAppendTimeExt(b *testing.B) {
424 t := time.Now()

Callers

nothing calls this directly

Calls 1

AppendTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…