shaka-packager/packager/third_party/protobuf/benchmarks
KongQun Yang f68b4252b8 Sync protobuf to v3.3.0
disable-clang-format

Change-Id: I520178aa9bb8fd8a00a7009279bf30d7cdb8d5a8
2018-05-10 23:07:59 +00:00
..
Makefile.am Sync protobuf to v3.3.0 2018-05-10 23:07:59 +00: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 Sync protobuf to v3.3.0 2018-05-10 23:07:59 +00:00
benchmark_messages_proto3.proto Sync protobuf to v3.3.0 2018-05-10 23:07:59 +00:00
benchmarks.proto Updated protobuf library. 2016-08-02 19:11:17 -07:00
cpp_benchmark.cc Sync protobuf to v3.3.0 2018-05-10 23:07:59 +00: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 Sync protobuf to v3.3.0 2018-05-10 23:07:59 +00: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.