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

Function BenchmarkReadTime

msgp/read_test.go:942–955  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

940}
941
942func BenchmarkReadTime(b *testing.B) {
943 t := time.Now()
944 data := AppendTime(nil, t)
945 rd := NewReader(NewEndlessReader(data, b))
946 b.SetBytes(int64(len(data)))
947 b.ReportAllocs()
948 b.ResetTimer()
949 for i := 0; i < b.N; i++ {
950 _, err := rd.ReadTime()
951 if err != nil {
952 b.Fatal(err)
953 }
954 }
955}
956
957func TestSkip(t *testing.T) {
958 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 4

ReadTimeMethod · 0.95
AppendTimeFunction · 0.85
NewReaderFunction · 0.85
NewEndlessReaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…