protobuf-go/proto
Damien Neil a80229e4ed proto: add benchmark using protobuf repo test data
The primary (cross-language) protobuf repository contains benchmark data
sets. Add benchmarks using this data. (A version of this benchmark exists
in the protobuf repository, but it uses the v1 API and isn't trivial to
get working.)

Fetch the small benchmark datasets from the
github.com/protocolbuffers/protobuf repo by default. Add a
download_benchdata.bash script which fetches the larger datasets as
well.

Generate necessary packages under internal/testprotos/benchmarks.

To run:

  go run ./proto -bench=BenchmarkData

Usual caveats about benchmarking apply: While these benchmarks use
realistic data, isolated microbenchmarking of proto operations is not
necessarily representitive of performance in production systems.

Change-Id: I58d107554baf104568c86997b5ad50be8b2a5790
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/183297
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-06-20 20:38:50 +00:00
..
bench_test.go proto: add benchmark using protobuf repo test data 2019-06-20 20:38:50 +00:00
decode_gen.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
decode_test.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
decode.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
encode_gen.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
encode_test.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
encode.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
equal_test.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
equal.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
isinit_test.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
isinit.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00
proto_methods.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
proto_reflect.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
proto.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
reset_test.go proto: fix memory aliasing bug in Reset 2019-06-20 19:48:37 +00:00
reset.go proto: fix memory aliasing bug in Reset 2019-06-20 19:48:37 +00:00
size_gen.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
size.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00