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

Function BenchmarkConcurrentMapUnmarshal

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

Source from the content-addressed store, hash-verified

47}
48
49func BenchmarkConcurrentMapUnmarshal(b *testing.B) {
50 in := marshalled()
51 b.RunParallel(func(pb *testing.PB) {
52 for pb.Next() {
53 var out ppb.IntMaps
54 if err := proto.Unmarshal(in, &out); err != nil {
55 b.Errorf("Can't unmarshal ppb.IntMaps: %v", err)
56 }
57 }
58 })
59}
60
61func BenchmarkSequentialMapUnmarshal(b *testing.B) {
62 in := marshalled()

Callers

nothing calls this directly

Calls 3

UnmarshalFunction · 0.92
marshalledFunction · 0.85
NextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…