Skip to content

proto: performance degradation with v1.1.0 #624

@srenatus

Description

@srenatus

Hi there -- updating our dependency on golang/protobuf to v1.1.0, I've noticed an unexpected dip in performance when running some microbenchmarks.

👉 I've put up a reproduction case here: https://github.com/srenatus/pb-bench -- you can also look at the output on travis

The gist is that marshaling (of a rather big message) is getting a lot worse in all three metrics; ranging from +165.77% (alloc/op) to +751.93% (allocs/op).

I've brought this up in #protobuf of the gopher slack, where @dsnet asked for further input -- here it is (👋 @dsnet 😃).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions