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

Function BenchmarkEncodeVarintShort

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

Source from the content-addressed store, hash-verified

35}
36
37func BenchmarkEncodeVarintShort(b *testing.B) {
38 c := [10]byte{}
39
40 for range b.N {
41 encodeVarint(c[:], 0)
42 }
43}
44
45func BenchmarkEncodeVarintLong(b *testing.B) {
46 c := [10]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…