Benchmark encoding translated messages as binary, too.
authorChristopher Peplin <chris.peplin@rhubarbtech.com>
Thu, 22 Aug 2013 14:57:48 +0000 (10:57 -0400)
committerChristopher Peplin <chris.peplin@rhubarbtech.com>
Tue, 7 Jan 2014 18:18:09 +0000 (13:18 -0500)
commit8f87419564532b304dec7105afe005f85cdec0e1
tree7b3c03741824acefe6a01d6371527943cc9ec6eb
parentf85bc9eb9a932988bdab198f9da20c2fea55bac2
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
benchmark/proto/compare_sizes.py [changed mode: 0644->0755]
benchmark/proto/openxc.proto