diff --git a/Makefile b/Makefile index a309619..bcbc328 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ all: regenerate: (cd simple && protoc-min-version --version="3.0.0" --gogo_out=plugins=grpc:. --proto_path=.:$(GOPATH)/src/:$(GOPATH)/src/github.com/gogo/protobuf/protobuf/ grpc.proto) - (cd bench && protoc-gen-combo --version="3.0.0" --proto_path=.:$(GOPATH)/src/:$(GOPATH)/src/github.com/gogo/protobuf/protobuf/ --plugins=grpc bench.proto) + (cd bench && protoc-gen-combo --version="3.0.0" --proto_path=.:$(GOPATH)/src/:$(GOPATH)/src/github.com/gogo/protobuf/protobuf/ --gogo_out=plugins=grpc:. bench.proto) (cd gofast && protoc --gofast_out=plugins=grpc:. gofast.proto) test: diff --git a/bench/combos/both/bench.pb.go b/bench/combos/both/bench.pb.go index 8b70de9..96dbb67 100644 --- a/bench/combos/both/bench.pb.go +++ b/bench/combos/both/bench.pb.go @@ -43,7 +43,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -612,11 +614,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -626,7 +629,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -636,7 +639,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -846,6 +849,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func (m *Request) Marshal() (data []byte, err error) { @@ -2372,35 +2376,38 @@ var ( ErrIntOverflowBench = fmt.Errorf("proto: integer overflow") ) +func init() { proto.RegisterFile("combos/both/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 451 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xbb, 0x76, 0x6d, 0x37, 0x1b, 0xa7, 0x2d, 0x7b, 0x80, 0x51, 0x91, 0x2c, 0x64, 0xb5, - 0x12, 0x1c, 0x1a, 0xff, 0x6f, 0xd3, 0x6b, 0x0e, 0xdc, 0xe0, 0xe0, 0x3c, 0x41, 0xdd, 0x3a, 0x8e, - 0xa5, 0xb8, 0x86, 0xd4, 0xbe, 0xf3, 0x10, 0xbc, 0x03, 0x3c, 0x0a, 0x47, 0x1e, 0xa1, 0x94, 0x17, - 0xe0, 0x98, 0x03, 0x07, 0x86, 0xf5, 0x7a, 0x8d, 0x85, 0x2c, 0x05, 0x89, 0xc3, 0x48, 0x9e, 0xdf, - 0x37, 0xf6, 0x8c, 0xbf, 0xd9, 0xa5, 0xcf, 0x6e, 0xca, 0x22, 0x29, 0xef, 0x9d, 0xa4, 0xac, 0x56, - 0x4e, 0x92, 0xde, 0xd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98, 0x0f, 0x26, 0x2a, 0xc7, - 0xad, 0xe2, 0x77, 0x4a, 0x00, 0x13, 0x54, 0x0e, 0x5a, 0x25, 0x18, 0x36, 0xb9, 0x53, 0x22, 0x38, - 0x42, 0xc5, 0x6c, 0x95, 0xc8, 0xfe, 0xa4, 0x50, 0x75, 0x9e, 0x67, 0xff, 0xec, 0xfd, 0x59, 0xcf, - 0xfb, 0xb1, 0x3f, 0x99, 0x36, 0x87, 0xaf, 0x59, 0xa5, 0x5c, 0xc5, 0xe9, 0x1f, 0xab, 0x50, 0xb1, - 0xcc, 0x14, 0x65, 0xfc, 0x1c, 0xfd, 0xb5, 0x98, 0x5d, 0x17, 0x70, 0xd6, 0x5b, 0xc0, 0x40, 0xf3, - 0xd9, 0xff, 0x75, 0xca, 0xff, 0x48, 0xa8, 0x31, 0xff, 0xdd, 0x26, 0xdd, 0xb0, 0x57, 0x74, 0x84, - 0xa6, 0x2d, 0xaa, 0x4d, 0x7a, 0x5d, 0xb0, 0x43, 0xd1, 0x5d, 0x5c, 0x9c, 0x13, 0x2a, 0x72, 0xac, - 0x70, 0x09, 0x73, 0xa8, 0xd9, 0x8c, 0x35, 0x50, 0xdd, 0x9f, 0x1d, 0x5f, 0x38, 0xa7, 0x63, 0xee, - 0xce, 0x40, 0x7d, 0xcf, 0x41, 0x97, 0xcc, 0x4f, 0x1f, 0xbe, 0x59, 0xe4, 0x07, 0xc6, 0x16, 0xe3, - 0xf3, 0xa3, 0x45, 0xbe, 0x60, 0x7c, 0xc5, 0x78, 0xc0, 0xd8, 0x3e, 0x5a, 0x7b, 0x1f, 0xbe, 0x5b, - 0x7b, 0x89, 0xce, 0xaf, 0x77, 0xf0, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x74, 0xaf, 0x48, 0x28, 0x2f, + // 467 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x31, 0x6e, 0xdb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89, 0x67, 0xd9, 0x3a, 0xba, + 0x4d, 0xe9, 0xb1, 0xee, 0xae, 0x1f, 0xce, 0x19, 0xd1, 0x75, 0x90, 0xc4, 0x1e, 0x50, 0x97, 0x74, + 0xca, 0xb1, 0x6a, 0x56, 0xef, 0xce, 0xee, 0x01, 0xbd, 0x24, 0x6d, 0xe5, 0x4e, 0xcd, 0xfa, 0x1d, + 0x07, 0x3d, 0x08, 0xce, 0x1f, 0x37, 0x0c, 0x7e, 0x6e, 0x18, 0x3c, 0x6d, 0x18, 0x7c, 0x2d, 0x18, + 0x7c, 0x2b, 0x18, 0x7c, 0x2f, 0x18, 0x3c, 0x16, 0x0c, 0x9e, 0x0a, 0x76, 0xf0, 0xe9, 0x07, 0x3b, + 0x08, 0x6d, 0xf5, 0xbc, 0x87, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x74, 0xaf, 0x48, 0x28, 0x2f, 0x04, 0x00, 0x00, } diff --git a/bench/combos/marshaler/bench.pb.go b/bench/combos/marshaler/bench.pb.go index 473194d..6a4d089 100644 --- a/bench/combos/marshaler/bench.pb.go +++ b/bench/combos/marshaler/bench.pb.go @@ -41,7 +41,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -610,11 +612,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -624,7 +627,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -634,7 +637,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -844,6 +847,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func (m *Request) Marshal() (data []byte, err error) { @@ -1443,35 +1447,38 @@ func sozBench(x uint64) (n int) { return sovBench(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func init() { proto.RegisterFile("combos/marshaler/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xbb, 0x71, 0x63, 0x37, 0x9b, 0xa4, 0x2d, 0x7b, 0x40, 0xa3, 0x82, 0x22, 0x14, 0xb5, - 0x12, 0x1c, 0x1a, 0xff, 0x6f, 0xd3, 0x6b, 0x0e, 0xdc, 0xe0, 0xe0, 0x3c, 0x81, 0xdd, 0x6e, 0x1c, - 0x4b, 0x76, 0x0d, 0x8e, 0x7d, 0xe7, 0x21, 0x78, 0x07, 0x78, 0x14, 0x8e, 0x3c, 0x42, 0x29, 0x2f, - 0xc0, 0xb1, 0x07, 0x0e, 0x0c, 0xeb, 0xf5, 0x1a, 0x0b, 0x59, 0x2a, 0x12, 0x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 0xe9, 0xe2, 0x7a, 0xbb, 0xbf, 0x02, 0x00, 0x00, 0xff, - 0xff, 0x25, 0xc1, 0x67, 0xdf, 0x34, 0x04, 0x00, 0x00, + // 472 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6e, 0xda, 0x40, + 0x14, 0x86, 0x79, 0x38, 0xd8, 0x61, 0x80, 0x24, 0x9d, 0x45, 0xf5, 0x94, 0x56, 0xa3, 0x11, 0x4a, + 0xa4, 0xe9, 0x22, 0xd8, 0x18, 0x48, 0xc8, 0xd6, 0x8b, 0xee, 0xda, 0x05, 0x9c, 0x00, 0x13, 0x63, + 0x2c, 0xe1, 0xb8, 0x35, 0x78, 0xdf, 0x43, 0xf4, 0x0e, 0xed, 0x51, 0xba, 0xec, 0x11, 0x82, 0x7b, + 0x81, 0x2e, 0xb3, 0xe8, 0xa2, 0xea, 0x78, 0x3c, 0xd4, 0xaa, 0x2c, 0xa5, 0x52, 0x76, 0x7e, 0xdf, + 0x3f, 0x9e, 0xf7, 0xe6, 0xff, 0x67, 0xc8, 0xeb, 0x65, 0x12, 0xfb, 0xc9, 0xd6, 0x8e, 0x17, 0xe9, + 0x76, 0xbd, 0xd8, 0x04, 0xa9, 0xed, 0x07, 0xf7, 0xcb, 0xf5, 0xe0, 0x43, 0x9a, 0xec, 0x12, 0xda, + 0x92, 0xc5, 0xf9, 0x55, 0x18, 0xed, 0xd6, 0x99, 0x3f, 0x58, 0x26, 0xb1, 0x1d, 0x26, 0x61, 0x62, + 0x4b, 0xd5, 0xcf, 0x56, 0xb2, 0x92, 0x85, 0xfc, 0x2a, 0xfe, 0xea, 0xbf, 0x22, 0xd6, 0x2c, 0xf8, + 0x98, 0x05, 0xdb, 0x1d, 0x3d, 0x23, 0xc6, 0xfb, 0x2c, 0x46, 0xe0, 0x20, 0x8c, 0x99, 0x71, 0x9f, + 0xc5, 0xfd, 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, 0x17, 0x7f, 0x45, 0x61, 0x88, 0x8e, + 0xdb, 0x55, 0xcb, 0xe4, 0x3d, 0xfa, 0x27, 0x98, 0xa7, 0x06, 0x70, 0x59, 0x09, 0xa0, 0xa6, 0xf9, + 0xf4, 0x79, 0x9d, 0x72, 0x3f, 0x03, 0xb1, 0xbc, 0x3f, 0x6d, 0x82, 0x94, 0xbe, 0x21, 0x6d, 0x2f, + 0x0a, 0xe7, 0xbb, 0x34, 0x58, 0xc4, 0xf4, 0x44, 0x75, 0x57, 0x0f, 0xe7, 0x9c, 0xa8, 0xda, 0x8b, + 0x42, 0x07, 0xa8, 0x4d, 0xba, 0xc5, 0x58, 0x35, 0xab, 0xab, 0xb3, 0x3b, 0x40, 0xaf, 0x48, 0x47, + 0xba, 0x53, 0xb3, 0xbe, 0xe2, 0xa0, 0x03, 0xde, 0xc5, 0xc3, 0x9e, 0xc1, 0xcf, 0x3d, 0x83, 0xc7, + 0x3d, 0x83, 0xaf, 0x39, 0x83, 0x6f, 0x39, 0x83, 0xef, 0x39, 0x6b, 0x3c, 0xe4, 0x0c, 0x1e, 0x73, + 0xd6, 0xf8, 0xf4, 0x83, 0x35, 0x7c, 0x53, 0x3e, 0xef, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x25, 0xc1, 0x67, 0xdf, 0x34, 0x04, 0x00, 0x00, } diff --git a/bench/combos/neither/bench.pb.go b/bench/combos/neither/bench.pb.go index e34df2b..2ff9749 100644 --- a/bench/combos/neither/bench.pb.go +++ b/bench/combos/neither/bench.pb.go @@ -41,7 +41,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -610,11 +612,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -624,7 +627,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -634,7 +637,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -844,6 +847,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func NewPopulatedRequest(r randyBench, easy bool) *Request { @@ -1167,35 +1171,38 @@ func sozBench(x uint64) (n int) { return sovBench(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func init() { proto.RegisterFile("combos/neither/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 453 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x80, 0xbb, 0x71, 0x63, 0x37, 0x9b, 0xa4, 0x2d, 0x7b, 0x40, 0xa3, 0x20, 0x59, 0xc8, 0x6a, - 0x25, 0x38, 0x34, 0xfe, 0x6f, 0xd3, 0x6b, 0x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f, 0x7e, 0xa7, 0x83, 0x0e, 0x59, 0x9e, 0xdc, 0x7f, 0x37, 0xc9, 0x4f, 0x5c, 0x8f, 0xb8, - 0xbe, 0x3c, 0x98, 0xe4, 0xeb, 0x83, 0xb9, 0xf7, 0x0d, 0xd7, 0x3d, 0xde, 0x3f, 0xe2, 0xf5, 0xe3, - 0x0f, 0x73, 0x2f, 0xd6, 0xc5, 0xf1, 0xf6, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x2f, 0xd1, - 0x48, 0x32, 0x04, 0x00, 0x00, + // 470 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6e, 0xda, 0x40, + 0x14, 0x86, 0x79, 0x38, 0xd8, 0x61, 0x80, 0x24, 0x9d, 0x45, 0xf5, 0x44, 0xa5, 0xd1, 0x08, 0x25, + 0xd2, 0x74, 0x11, 0x6c, 0x0c, 0x24, 0x64, 0xeb, 0x45, 0x77, 0xed, 0x02, 0x4e, 0x10, 0x93, 0xc1, + 0x58, 0xc2, 0xb8, 0x25, 0xf6, 0xbe, 0x87, 0xe8, 0x1d, 0xda, 0xa3, 0x74, 0xd9, 0x23, 0x04, 0xf7, + 0x02, 0x5d, 0x66, 0xd1, 0x45, 0xd5, 0xf1, 0xd8, 0xd4, 0xaa, 0x2c, 0x51, 0xa9, 0x3b, 0xbf, 0xef, + 0x1f, 0xcf, 0x7b, 0xf3, 0xff, 0x33, 0xa4, 0xbf, 0x8c, 0x23, 0x3f, 0x7e, 0xb4, 0xb7, 0x32, 0x4c, + 0xd6, 0x72, 0x67, 0xfb, 0x72, 0xbb, 0x5c, 0x0f, 0xdf, 0xef, 0xe2, 0x24, 0xa6, 0x2d, 0x55, 0xf4, + 0xaf, 0x83, 0x30, 0x59, 0xa7, 0xfe, 0x70, 0x19, 0x47, 0x76, 0x10, 0x07, 0xb1, 0xad, 0x54, 0x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x19, 0xd7, 0x9b, 0x7c, 0x50, 0xa6, 0x78, 0xce, 0x41, 0x74, 0x0b, + 0x65, 0x3a, 0xf8, 0xdc, 0x24, 0x86, 0x17, 0x06, 0xff, 0xec, 0xfd, 0x55, 0xc5, 0xfb, 0x8e, 0xdb, + 0x1b, 0xe6, 0x97, 0x2f, 0x8f, 0xb2, 0x8c, 0xe2, 0xf2, 0x8f, 0x28, 0x0c, 0xd1, 0x71, 0xbb, 0x7a, + 0x99, 0xba, 0x47, 0x7f, 0x05, 0x73, 0x6c, 0x00, 0x57, 0x95, 0x00, 0x6a, 0x9a, 0xcf, 0xfe, 0xaf, + 0x53, 0xee, 0x27, 0x20, 0x96, 0xf7, 0xbb, 0x8d, 0xdc, 0xd1, 0xd7, 0xa4, 0xed, 0x85, 0xc1, 0x22, + 0xd9, 0xc9, 0xfb, 0x88, 0x9e, 0xe9, 0xee, 0xfa, 0xe1, 0xf4, 0x89, 0xae, 0xbd, 0x30, 0x70, 0x80, + 0xda, 0xa4, 0x9b, 0x8f, 0x55, 0xb3, 0xba, 0x3a, 0xbb, 0x03, 0xf4, 0x9a, 0x74, 0x94, 0x3b, 0x35, + 0xeb, 0x2b, 0x0e, 0x3a, 0xe0, 0x5d, 0x3e, 0xed, 0x19, 0xfc, 0xd8, 0x33, 0x78, 0xde, 0x33, 0xf8, + 0x92, 0x31, 0xf8, 0x9a, 0xb1, 0xc6, 0xb7, 0x8c, 0x35, 0x9e, 0x32, 0x06, 0xcf, 0x19, 0x6b, 0x7c, + 0xfc, 0xce, 0x1a, 0xbe, 0xa9, 0x9e, 0xf7, 0xf8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x2f, + 0xd1, 0x48, 0x32, 0x04, 0x00, 0x00, } diff --git a/bench/combos/unmarshaler/bench.pb.go b/bench/combos/unmarshaler/bench.pb.go index 6d46d1b..2a991b8 100644 --- a/bench/combos/unmarshaler/bench.pb.go +++ b/bench/combos/unmarshaler/bench.pb.go @@ -43,7 +43,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -612,11 +614,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -626,7 +629,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -636,7 +639,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -846,6 +849,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func NewPopulatedRequest(r randyBench, easy bool) *Request { @@ -2096,35 +2100,38 @@ var ( ErrIntOverflowBench = fmt.Errorf("proto: integer overflow") ) +func init() { proto.RegisterFile("combos/unmarshaler/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 460 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xbb, 0x71, 0x63, 0x37, 0x9b, 0xa4, 0x2d, 0x7b, 0x40, 0xa3, 0x22, 0x59, 0x28, 0x6a, - 0x25, 0x38, 0x34, 0x4e, 0xfc, 0xa7, 0x4d, 0xaf, 0x39, 0x70, 0x83, 0x83, 0xf3, 0x04, 0x76, 0xbb, - 0x71, 0x2c, 0xd9, 0x31, 0x38, 0xf6, 0x9d, 0x87, 0xe0, 0x1d, 0xe0, 0x51, 0x38, 0xf2, 0x08, 0xa5, - 0xbc, 0x00, 0xc7, 0x1e, 0x38, 0x30, 0xac, 0xd7, 0x6b, 0x2c, 0x64, 0x29, 0x48, 0x3d, 0xac, 0xec, - 0xf9, 0x7d, 0x63, 0xcf, 0xec, 0x37, 0xbb, 0xd4, 0xbc, 0xcd, 0xd2, 0x30, 0xdb, 0x59, 0xe5, 0x36, - 0x0d, 0xf2, 0xdd, 0x26, 0x48, 0x78, 0x6e, 0x85, 0x7c, 0x7b, 0xbb, 0x99, 0xbe, 0xcf, 0xb3, 0x22, - 0x63, 0x7d, 0x11, 0x9c, 0x5d, 0x46, 0x71, 0xb1, 0x29, 0xc3, 0x29, 0x66, 0x5b, 0x51, 0x16, 0x65, - 0x96, 0x50, 0xc3, 0x72, 0x2d, 0x22, 0x11, 0x88, 0xb7, 0xea, 0xab, 0xc9, 0x0b, 0x6a, 0xf8, 0xfc, - 0x43, 0xc9, 0x77, 0x05, 0x3b, 0xa5, 0xda, 0xbb, 0x32, 0x05, 0xf2, 0x92, 0xbc, 0xd2, 0x7c, 0x6d, - 0x5b, 0xa6, 0x93, 0x15, 0xed, 0xaf, 0xd2, 0x20, 0x49, 0xd8, 0x73, 0xaa, 0xbf, 0x89, 0x79, 0x72, - 0xe7, 0x80, 0x86, 0x6a, 0xdf, 0xd7, 0xd7, 0x22, 0x62, 0x40, 0x0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, - 0x53, 0x86, 0xe7, 0xec, 0x35, 0x1d, 0xa0, 0x69, 0xab, 0x22, 0xe7, 0x41, 0xca, 0x8e, 0x65, 0x75, - 0x79, 0x71, 0xce, 0xa8, 0x8c, 0x31, 0x63, 0x46, 0x98, 0x45, 0x47, 0x55, 0x5b, 0x1d, 0xd9, 0xed, - 0xde, 0xf1, 0x83, 0x4b, 0x3a, 0x14, 0xee, 0x74, 0xe4, 0xb7, 0x1c, 0x9c, 0x91, 0xe5, 0xf9, 0xfd, - 0x77, 0x93, 0xfc, 0xc4, 0xf5, 0x88, 0xeb, 0xcb, 0x83, 0x49, 0xbe, 0x3e, 0x98, 0x07, 0xdf, 0xf0, - 0x79, 0x8f, 0xeb, 0x11, 0xdf, 0x3f, 0xfe, 0x30, 0x0f, 0x42, 0x5d, 0x5c, 0x6f, 0xe7, 0x77, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xb7, 0x58, 0xc2, 0xd8, 0x36, 0x04, 0x00, 0x00, + // 473 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6e, 0xda, 0x40, + 0x14, 0x86, 0x79, 0x38, 0xd8, 0x61, 0x80, 0x24, 0x9d, 0x45, 0xf5, 0x94, 0x4a, 0xa3, 0x11, 0x4a, + 0xa4, 0xe9, 0x22, 0xd8, 0x18, 0x48, 0xc8, 0xd6, 0x8b, 0xee, 0xda, 0x05, 0x9c, 0x00, 0x13, 0x63, + 0x2c, 0x61, 0xdc, 0x1a, 0xbc, 0xef, 0x21, 0x7a, 0x87, 0xf6, 0x28, 0x5d, 0xf6, 0x08, 0xc1, 0xbd, + 0x40, 0x97, 0x59, 0x74, 0x51, 0x75, 0x3c, 0x1e, 0x6a, 0x55, 0x96, 0x52, 0xa9, 0x3b, 0xbf, 0xef, + 0x1f, 0xcf, 0x7b, 0xf3, 0xff, 0x33, 0x84, 0x2d, 0x93, 0x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, 0xce, 0x1a, 0xbe, 0x29, 0x9f, 0xf7, 0xe8, 0x57, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xb7, 0x58, 0xc2, 0xd8, 0x36, 0x04, 0x00, 0x00, } diff --git a/bench/combos/unsafeboth/bench.pb.go b/bench/combos/unsafeboth/bench.pb.go index 3dcc705..8b22f8c 100644 --- a/bench/combos/unsafeboth/bench.pb.go +++ b/bench/combos/unsafeboth/bench.pb.go @@ -45,7 +45,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -614,11 +616,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -628,7 +631,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -638,7 +641,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -848,6 +851,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func NewPopulatedRequest(r randyBench, easy bool) *Request { @@ -2323,35 +2327,38 @@ var ( ErrIntOverflowBenchUnsafe = fmt.Errorf("proto: integer overflow") ) +func init() { proto.RegisterFile("combos/unsafeboth/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xd9, 0xb8, 0xb1, 0x9b, 0x4d, 0xd2, 0x96, 0x3d, 0xa0, 0x51, 0x11, 0x11, 0xb2, 0x5a, - 0x09, 0x0e, 0x8d, 0xff, 0xb7, 0xe9, 0x35, 0x07, 0x6e, 0x70, 0x70, 0x9e, 0x20, 0x6e, 0xd7, 0x8e, - 0xa5, 0x38, 0x86, 0xc4, 0xbe, 0xf3, 0x10, 0xbc, 0x03, 0x3c, 0x0a, 0x47, 0x1e, 0xa1, 0x94, 0x17, - 0xe0, 0xd8, 0x03, 0x07, 0x86, 0xf5, 0x7a, 0x8d, 0x85, 0x2c, 0x05, 0xa9, 0x87, 0x91, 0x3c, 0xbf, - 0x6f, 0xec, 0x19, 0x7f, 0xb3, 0x4b, 0x5f, 0xdc, 0xe4, 0x59, 0x94, 0xef, 0xac, 0x72, 0xb3, 0x5b, - 0xc6, 0x3c, 0xca, 0x8b, 0x95, 0x15, 0xf1, 0xcd, 0xcd, 0x6a, 0xfa, 0x7e, 0x9b, 0x17, 0x39, 0xeb, - 0x8b, 0xe4, 0xf4, 0x22, 0x49, 0x8b, 0x55, 0x19, 0x4d, 0xb1, 0xd8, 0x4a, 0xf2, 0x24, 0xb7, 0x84, - 0x1a, 0x95, 0xb1, 0xc8, 0x44, 0x22, 0x9e, 0xaa, 0xb7, 0xcc, 0xe7, 0xd4, 0x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0xbc, 0x1f, 0xba, 0xe3, 0x69, 0x75, 0xf8, 0xaa, 0x55, 0xaa, 0x55, 0x9c, - 0xfd, 0xb5, 0x0a, 0x0d, 0xcb, 0x46, 0xb2, 0x4c, 0x9c, 0xa3, 0x7f, 0x16, 0xb3, 0xef, 0x02, 0xce, - 0x5b, 0x0b, 0xe8, 0x68, 0x3e, 0x7b, 0x5c, 0xa7, 0xdc, 0x4f, 0x84, 0x1a, 0xf3, 0x3f, 0x6d, 0xf8, - 0x96, 0xbd, 0xa6, 0x03, 0x34, 0x6d, 0x51, 0x6c, 0xf9, 0x32, 0x63, 0x47, 0xb2, 0xbb, 0xbc, 0x38, - 0xa7, 0x54, 0xe6, 0x58, 0x61, 0x13, 0x66, 0xd1, 0x51, 0x35, 0x56, 0x47, 0x75, 0x7b, 0x76, 0x7c, - 0xe1, 0x82, 0x0e, 0x85, 0x3b, 0x1d, 0xf5, 0x2d, 0x07, 0x6d, 0x32, 0x3f, 0xbb, 0xfb, 0x3e, 0x21, - 0x3f, 0x31, 0x1e, 0x30, 0xbe, 0xdc, 0x4f, 0xc8, 0xd7, 0xfb, 0xc9, 0x93, 0x6f, 0x18, 0x77, 0xf8, - 0xfc, 0x80, 0xf1, 0xf1, 0xc7, 0x84, 0x44, 0xba, 0xb8, 0xde, 0xde, 0xef, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xe3, 0xdd, 0xcd, 0xad, 0x35, 0x04, 0x00, 0x00, + // 472 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6e, 0xda, 0x40, + 0x14, 0x86, 0xf3, 0x70, 0xb0, 0xc3, 0x00, 0x49, 0x3a, 0x8b, 0xea, 0x29, 0x55, 0x47, 0x23, 0x94, + 0x48, 0xd3, 0x45, 0xb0, 0x31, 0x90, 0x90, 0xad, 0x17, 0xdd, 0xb5, 0x0b, 0x38, 0x01, 0x26, 0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 0xdd, 0x01, 0x7a, 0x4d, 0xda, + 0xd2, 0x9d, 0x9a, 0xf5, 0x15, 0x07, 0x1d, 0xf0, 0x2e, 0x1f, 0xf6, 0x0c, 0x7e, 0xee, 0x19, 0x3c, + 0xee, 0x19, 0x7c, 0xcd, 0x19, 0x7c, 0xcb, 0xd9, 0xd1, 0xf7, 0x9c, 0x1d, 0x3d, 0xe4, 0x0c, 0x1e, + 0x73, 0x06, 0x9f, 0x7e, 0x30, 0xf0, 0x4d, 0xf9, 0xbc, 0x87, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0xdd, 0xcd, 0xad, 0x35, 0x04, 0x00, 0x00, } diff --git a/bench/combos/unsafemarshaler/bench.pb.go b/bench/combos/unsafemarshaler/bench.pb.go index 58ffb09..2ff3207 100644 --- a/bench/combos/unsafemarshaler/bench.pb.go +++ b/bench/combos/unsafemarshaler/bench.pb.go @@ -43,7 +43,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -612,11 +614,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -626,7 +629,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -636,7 +639,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -846,6 +849,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func NewPopulatedRequest(r randyBench, easy bool) *Request { @@ -1454,35 +1458,38 @@ func encodeVarintBench(data []byte, offset int, v uint64) int { return offset + 1 } +func init() { proto.RegisterFile("combos/unsafemarshaler/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 462 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xbb, 0x71, 0x63, 0x37, 0x9b, 0xa4, 0x2d, 0x7b, 0x40, 0xa3, 0x22, 0x45, 0xc8, 0x6a, - 0x25, 0x38, 0x34, 0x4e, 0x9c, 0xb8, 0x4d, 0xaf, 0x39, 0x70, 0x83, 0x83, 0xf3, 0x04, 0x76, 0xbb, - 0x76, 0x2c, 0xd9, 0x31, 0xf8, 0xcf, 0x9d, 0x87, 0xe0, 0x1d, 0xe0, 0x51, 0x38, 0xf2, 0x08, 0xa5, - 0xbc, 0x00, 0xc7, 0x1e, 0x38, 0x30, 0xac, 0xd7, 0x6b, 0x2c, 0x64, 0x29, 0x48, 0x3d, 0x8c, 0xe4, - 0xf9, 0x7d, 0xb3, 0x9e, 0xf1, 0x37, 0x5e, 0x6a, 0xde, 0xa6, 0x89, 0x9f, 0xe6, 0x56, 0xb9, 0xcb, - 0xbd, 0x80, 0x27, 0x5e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476 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0x31, 0x6e, 0xdb, 0x30, + 0x14, 0x86, 0xfd, 0xac, 0x58, 0x8a, 0x69, 0x3b, 0x49, 0x39, 0x14, 0x44, 0x0a, 0x10, 0x84, 0x90, + 0x00, 0xec, 0x10, 0x4b, 0x96, 0xed, 0xc4, 0x59, 0x35, 0x74, 0x6b, 0x07, 0xfb, 0x04, 0x92, 0x43, + 0xcb, 0x02, 0x2c, 0xab, 0x95, 0xad, 0xbd, 0x87, 0xe8, 0x1d, 0xda, 0xa3, 0x74, 0xec, 0x11, 0x62, + 0xf5, 0x02, 0x1d, 0x33, 0x74, 0x28, 0x4a, 0x51, 0x74, 0x85, 0x42, 0x40, 0x0a, 0x74, 0xd3, 0xfb, + 0x7e, 0x8a, 0xef, 0xf1, 0xff, 0x49, 0x64, 0x2f, 0xd3, 0x24, 0x4c, 0x77, 0x4e, 0xbe, 0xdd, 0x05, + 0x2b, 0x91, 0x04, 0xd9, 0x6e, 0x1d, 0x6c, 0x44, 0xe6, 0x84, 0x62, 0xbb, 0x5c, 0x0f, 0xdf, 0x67, + 0xe9, 0x3e, 0xc5, 0x1d, 0x59, 0x5c, 0xde, 0x44, 0xf1, 0x7e, 0x9d, 0x87, 0xc3, 0x65, 0x9a, 0x38, + 0x51, 0x1a, 0xa5, 0x8e, 0x54, 0xc3, 0x7c, 0x25, 0x2b, 0x59, 0xc8, 0xaf, 0xf2, 0x2f, 0xfb, 0x15, + 0xb2, 0xe6, 0xe2, 0x43, 0x2e, 0x76, 0x7b, 0x7c, 0x81, 0x8c, 0x77, 0x79, 0x42, 0x80, 0x01, 0x37, + 0xe6, 0xc6, 0x36, 0x4f, 0xec, 0x05, 0xea, 0x2c, 0x92, 0x60, 0xb3, 0xc1, 0x2f, 0x91, 0xf9, 0x26, + 0x16, 0x9b, 0x87, 0x31, 0x31, 0x18, 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60, 0x9e, 0x1b, 0xc0, 0x75, + 0x2d, 0x80, 0x86, 0xe6, 0xb3, 0xff, 0xeb, 0x94, 0xf7, 0x09, 0x90, 0xe5, 0xff, 0x6e, 0x23, 0x32, + 0xfc, 0x1a, 0x75, 0xfd, 0x38, 0x5a, 0xec, 0x33, 0x11, 0x24, 0xf8, 0x4c, 0x75, 0x57, 0x0f, 0xe7, + 0x12, 0xa9, 0xda, 0x8f, 0x23, 0x17, 0xb0, 0x83, 0xfa, 0xe5, 0x58, 0x0d, 0xab, 0xeb, 0xb3, 0xbb, + 0x80, 0x6f, 0x50, 0x4f, 0xba, 0xd3, 0xb0, 0xbe, 0xe6, 0xa0, 0x0b, 0xfe, 0xd5, 0xe3, 0x81, 0xc2, + 0x8f, 0x03, 0x85, 0xa7, 0x03, 0x85, 0x2f, 0x05, 0x85, 0xaf, 0x05, 0x6d, 0x7d, 0x2b, 0x68, 0xeb, + 0xb1, 0xa0, 0xf0, 0x54, 0x50, 0xf8, 0xf8, 0x9d, 0xb6, 0x42, 0x53, 0x3e, 0xef, 0xf1, 0xaf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x29, 0x25, 0x70, 0x63, 0x3a, 0x04, 0x00, 0x00, } diff --git a/bench/combos/unsafeunmarshaler/bench.pb.go b/bench/combos/unsafeunmarshaler/bench.pb.go index cb2f105..3bc5f44 100644 --- a/bench/combos/unsafeunmarshaler/bench.pb.go +++ b/bench/combos/unsafeunmarshaler/bench.pb.go @@ -44,7 +44,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Request struct { Num int64 `protobuf:"varint,1,opt,name=Num,json=num,proto3" json:"Num,omitempty"` @@ -613,11 +615,12 @@ func valueToGoStringBench(v interface{}, typ string) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } -func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extension) string { +func extensionToGoStringBench(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) if e == nil { return "nil" } - s := "map[int32]proto.Extension{" + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" keys := make([]int, 0, len(e)) for k := range e { keys = append(keys, int(k)) @@ -627,7 +630,7 @@ func extensionToGoStringBench(e map[int32]github_com_gogo_protobuf_proto.Extensi for _, k := range keys { ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) } - s += strings.Join(ss, ",") + "}" + s += strings.Join(ss, ",") + "})" return s } @@ -637,7 +640,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for Bencher service @@ -847,6 +850,7 @@ var _Bencher_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorBench, } func NewPopulatedRequest(r randyBench, easy bool) *Request { @@ -2037,35 +2041,38 @@ var ( ErrIntOverflowBenchUnsafe = fmt.Errorf("proto: integer overflow") ) +func init() { proto.RegisterFile("combos/unsafeunmarshaler/bench.proto", fileDescriptorBench) } + var fileDescriptorBench = []byte{ - // 464 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xd9, 0xb8, 0xb1, 0x9b, 0x4d, 0xd2, 0x96, 0x3d, 0xa0, 0x51, 0x91, 0x22, 0x14, 0xa5, - 0x12, 0x1c, 0x1a, 0x27, 0x4e, 0xd2, 0xa6, 0xd7, 0x1c, 0xb8, 0xc1, 0x21, 0x79, 0x02, 0xbb,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69, 0x5f, 0xba, 0xd3, 0x92, 0xdf, 0x70, 0x70, - 0x46, 0x36, 0x93, 0xfb, 0x6f, 0x23, 0xf2, 0x03, 0xd7, 0x23, 0xae, 0xcf, 0x0f, 0x23, 0xf2, 0xe5, - 0x61, 0xf4, 0xe4, 0x2b, 0xae, 0x7b, 0x7c, 0x7f, 0xc4, 0xe7, 0x87, 0xef, 0x23, 0xe2, 0x99, 0xf2, - 0x7a, 0x2f, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x75, 0x9f, 0x19, 0xa4, 0x3c, 0x04, 0x00, 0x00, + // 477 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x6e, 0xda, 0x30, + 0x18, 0xc7, 0xf9, 0x48, 0x49, 0x8a, 0x81, 0xb6, 0xf3, 0x61, 0xb2, 0x3a, 0xc9, 0xb2, 0x10, 0x95, + 0xbc, 0x43, 0x49, 0x08, 0xd0, 0xd2, 0x6b, 0x0e, 0xbb, 0x6d, 0x07, 0x78, 0x82, 0x84, 0x9a, 0x10, + 0x89, 0x90, 0x2d, 0x90, 0xfb, 0x1e, 0x62, 0xef, 0xb0, 0x3d, 0xca, 0x8e, 0x7b, 0x84, 0x92, 0xbd, + 0xc0, 0x8e, 0x3d, 0xec, 0x30, 0xcd, 0x71, 0xcc, 0xa2, 0x29, 0x12, 0x93, 0x76, 0xcb, 0xf7, 0xfb, + 0x3b, 0xfe, 0x3e, 0xff, 0xff, 0x36, 0x1a, 0x2c, 0x93, 0x38, 0x48, 0x76, 0x76, 0xb6, 0xdd, 0xf9, + 0x2b, 0x91, 0x6d, 0x63, 0x3f, 0xdd, 0xad, 0xfd, 0x8d, 0x48, 0xed, 0x40, 0x6c, 0x97, 0xeb, 0xe1, + 0xfb, 0x34, 0xd9, 0x27, 0xb8, 0x25, 0x8b, 0xeb, 0xdb, 0x30, 0xda, 0xaf, 0x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 0x55, 0x2a, 0xee, 0x51, 0x19, 0x93, 0x1e, 0x03, 0x7e, 0x5e, 0x2a, 0xe3, 0x7a, + 0x93, 0x8f, 0xca, 0x94, 0x5c, 0x32, 0xe0, 0xdd, 0x52, 0x99, 0xf6, 0x3f, 0x37, 0x91, 0xe1, 0x45, + 0xe1, 0x3f, 0x7b, 0x7f, 0x53, 0xf1, 0xbe, 0xe3, 0xf6, 0x86, 0xc5, 0xe5, 0x2b, 0xa2, 0xd4, 0x51, + 0x0c, 0xfe, 0x88, 0xc2, 0xe0, 0x1d, 0xb7, 0xab, 0x96, 0xc9, 0x7b, 0xf4, 0x57, 0x30, 0xa7, 0x06, + 0x70, 0x53, 0x09, 0xa0, 0xa6, 0xf9, 0xec, 0xff, 0x3a, 0xe5, 0x7e, 0x02, 0x64, 0x79, 0xbf, 0xdb, + 0x88, 0x14, 0xbf, 0x46, 0x6d, 0x2f, 0x0a, 0x17, 0xfb, 0x54, 0xf8, 0x31, 0xbe, 0x50, 0xdd, 0xd5, + 0xc3, 0xb9, 0x46, 0xaa, 0xf6, 0xa2, 0xd0, 0x01, 0x6c, 0xa3, 0x6e, 0x31, 0x56, 0xcd, 0xea, 0xea, + 0xec, 0x0e, 0xe0, 0x5b, 0xd4, 0x91, 0xee, 0xd4, 0xac, 0xaf, 0x38, 0xe8, 0x80, 0x37, 0x78, 0x3a, + 0x50, 0xf8, 0x71, 0xa0, 0xf0, 0x7c, 0xa0, 0xf0, 0x25, 0xa7, 0xf0, 0x35, 0xa7, 0x8d, 0x6f, 0x39, + 0x6d, 0x3c, 0xe5, 0x14, 0x9e, 0x73, 0xda, 0xf8, 0xf8, 0x9d, 0x42, 0x60, 0xca, 0xe7, 0x3d, 0xfe, + 0x15, 0x00, 0x00, 0xff, 0xff, 0x75, 0x9f, 0x19, 0xa4, 0x3c, 0x04, 0x00, 0x00, } diff --git a/gofast/gofast.pb.go b/gofast/gofast.pb.go index 4899712..8d399ab 100644 --- a/gofast/gofast.pb.go +++ b/gofast/gofast.pb.go @@ -32,7 +32,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.ProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type MyRequest struct { Value *int64 `protobuf:"varint,1,opt,name=Value,json=value" json:"Value,omitempty"` @@ -79,7 +81,7 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion2 +const _ = grpc.SupportPackageIsVersion3 // Client API for MyTest service @@ -141,7 +143,8 @@ var _MyTest_serviceDesc = grpc.ServiceDesc{ Handler: _MyTest_UnaryCall_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: fileDescriptorGofast, } func (m *MyRequest) Marshal() (data []byte, err error) { @@ -507,8 +510,10 @@ var ( ErrIntOverflowGofast = fmt.Errorf("proto: integer overflow") ) +func init() { proto.RegisterFile("gofast.proto", fileDescriptorGofast) } + var fileDescriptorGofast = []byte{ - // 139 bytes of a gzipped FileDescriptorProto + // 142 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0xcf, 0x4f, 0x4b, 0x2c, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0xf0, 0x94, 0x14, 0xb9, 0x38, 0x7d, 0x2b, 0x83, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x84, 0x44, 0xb8, 0x58, 0xc3, 0x12, 0x73, @@ -516,6 +521,6 @@ var fileDescriptorGofast = []byte{ 0x2e, 0x90, 0x92, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0xec, 0x6a, 0x8c, 0x6c, 0xb8, 0xd8, 0x7c, 0x2b, 0x43, 0x40, 0x66, 0x18, 0x71, 0x71, 0x86, 0xe6, 0x25, 0x16, 0x55, 0x3a, 0x27, 0xe6, 0xe4, 0x08, 0x09, 0xea, 0x41, 0x2d, 0x85, 0xdb, 0x21, 0x25, 0x84, 0x2c, 0x04, 0x31, 0xd3, 0x49, 0xe0, - 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x40, 0xfc, 0x00, 0x88, 0x67, 0x3c, 0x96, 0x63, 0x00, 0x04, 0x00, - 0x00, 0xff, 0xff, 0x32, 0xdb, 0xa9, 0xd6, 0xad, 0x00, 0x00, 0x00, + 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf1, 0x58, 0x8e, + 0x01, 0x10, 0x00, 0x00, 0xff, 0xff, 0x32, 0xdb, 0xa9, 0xd6, 0xad, 0x00, 0x00, 0x00, } diff --git a/simple/grpc.pb.go b/simple/grpc.pb.go index 2a7d315..b6bcf69 100644 --- a/simple/grpc.pb.go +++ b/simple/grpc.pb.go @@ -33,7 +33,9 @@ var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. -const _ = proto.GoGoProtoPackageIsVersion1 +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type MyRequest struct { Value int64 `protobuf:"varint,1,opt,name=Value,json=value,proto3" json:"Value,omitempty"` @@ -84,7 +86,7 @@ var _ grpc1.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc1.SupportPackageIsVersion2 +const _ = grpc1.SupportPackageIsVersion3 // Client API for MyTest service @@ -346,6 +348,7 @@ var _MyTest_serviceDesc = grpc1.ServiceDesc{ ClientStreams: true, }, }, + Metadata: fileDescriptorGrpc, } // Client API for MyBench service @@ -436,25 +439,28 @@ var _MyBench_serviceDesc = grpc1.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorGrpc, } +func init() { proto.RegisterFile("grpc.proto", fileDescriptorGrpc) } + var fileDescriptorGrpc = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0x5f, 0x4b, 0xc3, 0x30, - 0x14, 0xc5, 0x09, 0xb6, 0xd3, 0x5d, 0x05, 0x25, 0xf8, 0x20, 0x03, 0x45, 0x0b, 0x42, 0x61, 0x9a, - 0x96, 0xfa, 0xe2, 0xf3, 0xf4, 0xb5, 0x0a, 0xd3, 0xf9, 0xde, 0xd6, 0x98, 0x16, 0xba, 0x24, 0xe6, - 0x8f, 0xd2, 0xaf, 0xe6, 0xa7, 0x73, 0x89, 0x53, 0x27, 0xb5, 0x4f, 0xc9, 0x3d, 0xe7, 0xdc, 0xe4, - 0x97, 0x5c, 0x00, 0xa6, 0x64, 0x45, 0xa4, 0x12, 0x46, 0xe0, 0xc0, 0xed, 0x27, 0x53, 0xd6, 0x98, - 0xda, 0x96, 0xa4, 0x12, 0xcb, 0x84, 0x09, 0x26, 0x12, 0x6f, 0x96, 0xf6, 0x25, 0x31, 0x54, 0x9b, - 0xc4, 0xd4, 0xd4, 0xad, 0x5f, 0x2d, 0xd1, 0x19, 0x8c, 0xf3, 0x6e, 0x4e, 0x5f, 0xed, 0x4a, 0xc2, - 0x87, 0x10, 0x3e, 0x15, 0xad, 0xa5, 0x47, 0xe8, 0x14, 0xc5, 0x5b, 0xf3, 0xf0, 0xcd, 0x15, 0x51, - 0x04, 0xe0, 0x22, 0x5a, 0x0a, 0xae, 0xe9, 0x40, 0xe6, 0x18, 0xc2, 0xbc, 0xcb, 0x35, 0x1b, 0xb0, - 0x4f, 0x60, 0xe4, 0xed, 0xec, 0x7f, 0x3f, 0xfb, 0x40, 0x2e, 0xf0, 0xe8, 0x18, 0x08, 0x8c, 0x17, - 0xbc, 0x50, 0xdd, 0x4d, 0xd1, 0xb6, 0x78, 0x9f, 0xf8, 0xd7, 0xfd, 0x10, 0x4e, 0x0e, 0x7e, 0x85, - 0x35, 0xcf, 0x05, 0xc0, 0xad, 0x78, 0xe7, 0xda, 0x28, 0x5a, 0x2c, 0xfb, 0x0d, 0xbb, 0xdf, 0xc2, - 0xea, 0xf6, 0x14, 0xe1, 0x29, 0xec, 0x2c, 0xe4, 0x3a, 0xbb, 0x69, 0xf5, 0x0f, 0x8e, 0x11, 0x3e, - 0x87, 0x60, 0xd6, 0x3c, 0x37, 0x7f, 0x83, 0x7b, 0x1b, 0x45, 0x16, 0xa3, 0x14, 0x65, 0xd7, 0xb0, - 0x9d, 0x77, 0x33, 0xca, 0xab, 0x1a, 0x5f, 0x42, 0xe0, 0x60, 0xfa, 0x18, 0x98, 0xf8, 0x3f, 0xbf, - 0x6b, 0xf8, 0xbd, 0x34, 0x0f, 0x46, 0xd9, 0xca, 0xa4, 0xa8, 0x1c, 0xf9, 0x19, 0x5c, 0x7d, 0x06, - 0x00, 0x00, 0xff, 0xff, 0x66, 0x80, 0x21, 0x1c, 0xc4, 0x01, 0x00, 0x00, + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0xc3, 0x30, + 0x14, 0xc7, 0x09, 0xb6, 0xd3, 0x3d, 0x05, 0x25, 0x78, 0x90, 0x81, 0xa2, 0x05, 0xa1, 0x30, 0x6d, + 0x4b, 0xbd, 0x78, 0x9e, 0x5e, 0xab, 0x30, 0x9d, 0xf7, 0xb6, 0xc6, 0xb4, 0xd0, 0x25, 0x31, 0x79, + 0x51, 0xfa, 0xd5, 0xfc, 0x74, 0x92, 0x38, 0x75, 0x52, 0x77, 0x4a, 0xde, 0xfb, 0xff, 0x5e, 0xf8, + 0x25, 0x01, 0xe0, 0x5a, 0xd5, 0x89, 0xd2, 0x12, 0x25, 0x0d, 0xdc, 0x7e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x66, 0x80, 0x21, 0x1c, 0xc4, 0x01, 0x00, 0x00, }