shaka-packager/packager/third_party/protobuf/benchmarks
Thomas Inskip 1fbc410489 Updated protobuf library.
Change-Id: I09705df523ba4d0954925845a1619b25d70fd90f
2016-08-02 19:11:17 -07:00
..
Makefile.am Updated protobuf library. 2016-08-02 19:11:17 -07:00
ProtoBench.java Updated protobuf library. 2016-08-02 19:11:17 -07:00
README.md Updated protobuf library. 2016-08-02 19:11:17 -07:00
benchmark_messages_proto2.proto Updated protobuf library. 2016-08-02 19:11:17 -07:00
benchmark_messages_proto3.proto Updated protobuf library. 2016-08-02 19:11:17 -07:00
benchmarks.proto Updated protobuf library. 2016-08-02 19:11:17 -07:00
generate_datasets.cc Updated protobuf library. 2016-08-02 19:11:17 -07:00
google_message1.dat Updated protobuf library. 2016-08-02 19:11:17 -07:00
google_message2.dat Updated protobuf library. 2016-08-02 19:11:17 -07:00
google_size.proto Updated protobuf library. 2016-08-02 19:11:17 -07:00
readme.txt Updated protobuf library. 2016-08-02 19:11:17 -07:00

README.md

Protocol Buffers Benchmarks

This directory contains benchmarking schemas and data sets that you can use to test a variety of performance scenarios against your protobuf language runtime.

The schema for the datasets is described in benchmarks.proto.

Generate the data sets like so:

$ make
$ ./generate-datasets
Wrote dataset: dataset.google_message1_proto3.pb
Wrote dataset: dataset.google_message1_proto2.pb
Wrote dataset: dataset.google_message2.pb
$

Each data set will be written to its own file. Benchmarks will likely want to run several benchmarks against each data set (parse, serialize, possibly JSON, possibly using different APIs, etc).

We would like to add more data sets. In general we will favor data sets that make the overall suite diverse without being too large or having too many similar tests. Ideally everyone can run through the entire suite without the test run getting too long.