MCPcopy
hub / github.com/gogo/protobuf / BenchmarkSequentialMapUnmarshal

Function BenchmarkSequentialMapUnmarshal

proto/map_test.go:61–70  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

59}
60
61func BenchmarkSequentialMapUnmarshal(b *testing.B) {
62 in := marshalled()
63 b.ResetTimer()
64 for i := 0; i < b.N; i++ {
65 var out ppb.IntMaps
66 if err := proto.Unmarshal(in, &out); err != nil {
67 b.Errorf("Can't unmarshal ppb.IntMaps: %v", err)
68 }
69 }
70}

Callers

nothing calls this directly

Calls 2

UnmarshalFunction · 0.92
marshalledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…