Network data serialization benchmarking Protobuf vs. JSON

Network data serialization benchmarking Protobuf vs. JSON

·

1 min read

Disclaimer: To get a better grasp, do run the code to get some results before reading post. Code is shared at [1].

Protobuf has all the magic, language neutral -easy to distribute-, fast, convertable and more mambojambo. First part of the comparison is to create simple JSON, say an employee registry, where for a simple file with three entries filesize is 120 bytes, despite the HTTP2 comparison.

[1]: https://github.com/tanerjn/protobuf_dict.git