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

Function BenchmarkEncodeVarintLong

proto/encode_test.go:45–51  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

43}
44
45func BenchmarkEncodeVarintLong(b *testing.B) {
46 c := [10]byte{}
47
48 for range b.N {
49 encodeVarint(c[:], math.MaxUint64)
50 }
51}
52
53func BenchmarkEncodeTag(b *testing.B) {
54 c := [8]byte{}

Callers

nothing calls this directly

Calls 1

encodeVarintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…