(b *testing.B)
| 47 | } |
| 48 | |
| 49 | func 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 | |
| 61 | func BenchmarkSequentialMapUnmarshal(b *testing.B) { |
| 62 | in := marshalled() |
nothing calls this directly
no test coverage detected
searching dependent graphs…