Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nishayo/jsonvsprotobuf
- Owner: nishaYO
- Created: 2024-05-11T17:24:55.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T04:08:27.000Z (6 months ago)
- Last Synced: 2024-10-12T13:12:47.560Z (about 1 month ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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