diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-08-22 10:57:48 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-07 13:18:09 -0500 |
commit | 8f87419564532b304dec7105afe005f85cdec0e1 (patch) | |
tree | 7b3c03741824acefe6a01d6371527943cc9ec6eb /benchmark/proto/openxc.proto | |
parent | f85bc9eb9a932988bdab198f9da20c2fea55bac2 (diff) |
Benchmark encoding translated messages as binary, too.
Results for all of my trace files:
> ./compare_sizes.py ~/ownCloud/OpenXC\ Traces/peplin/**/*.json 1
For the 89 trace files given...
Total transferred raw JSON size is 13.3MB
Total transferred raw binary size is 2.1MB
Total transferred translated JSON size is 791.0MB
Total transferred translated binary size is 318.6MB
Total transferred JSON size is 804.3MB
Total transferred binary size is 320.6MB
Binary encoding is 84.328494% smaller than JSON for raw messages
Binary encoding is 59.727489% smaller than JSON for translated messages
Binary encoding is 60.133196% smaller than JSON overall
Diffstat (limited to 'benchmark/proto/openxc.proto')
-rw-r--r-- | benchmark/proto/openxc.proto | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/proto/openxc.proto b/benchmark/proto/openxc.proto index 0af663c8..0e39bb6c 100644 --- a/benchmark/proto/openxc.proto +++ b/benchmark/proto/openxc.proto @@ -19,3 +19,6 @@ message TranslatedBooleanMessage { optional string name = 1; optional bool value = 2; } + +// TODO we should also consider having an enum type, h aving each specific +// message defined as a protobuf |