MCPcopy Create free account
hub / github.com/segmentio/encoding / BenchmarkDecodeTag

Function BenchmarkDecodeTag

proto/decode_test.go:69–76  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

67}
68
69func BenchmarkDecodeTag(b *testing.B) {
70 c := [8]byte{}
71 n, _ := encodeTag(c[:], 1, varint)
72
73 for range b.N {
74 decodeTag(c[:n])
75 }
76}
77
78func BenchmarkDecodeMessage(b *testing.B) {
79 data, _ := Marshal(message{

Callers

nothing calls this directly

Calls 2

encodeTagFunction · 0.85
decodeTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…