Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nishayo/jsonvsprotobuf

in this repo I am playing around with the json and protobuf message formats, comparing their performance
https://github.com/nishayo/jsonvsprotobuf

Last synced: 6 days ago
JSON representation

in this repo I am playing around with the json and protobuf message formats, comparing their performance

Awesome Lists containing this project

README

        

# JSON vs Protocol buffers

- create objects with same data in protobuf and json.
- compare length of the buffer of both the message formats
- send request using both message formats on axios protocol to [requestbin](https://pipedream.com/requestbin)
- compare latency and bandwidth of both the requests.

Results:
![alt text](image.png)

# Local setup instructions.
- create a request bin [here](https://pipedream.com/requestbin) and get the generated url.
- create .env file in root dir and add that url here `REQUEST_BIN_URL=`
- npm install and node main.js