• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2# Protocol Buffers Benchmarks
3
4This directory contains benchmarking schemas and data sets that you
5can use to test a variety of performance scenarios against your
6protobuf language runtime.
7
8The schema for the datasets is described in `benchmarks.proto`.
9
10Generate the data sets like so:
11
12```
13$ make
14$ ./generate-datasets
15Wrote dataset: dataset.google_message1_proto3.pb
16Wrote dataset: dataset.google_message1_proto2.pb
17Wrote dataset: dataset.google_message2.pb
18$
19```
20
21Each data set will be written to its own file.  Benchmarks will
22likely want to run several benchmarks against each data set (parse,
23serialize, possibly JSON, possibly using different APIs, etc).
24
25We would like to add more data sets.  In general we will favor data sets
26that make the overall suite diverse without being too large or having
27too many similar tests.  Ideally everyone can run through the entire
28suite without the test run getting too long.
29