Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pret-a-porter/electron-grpc
https://github.com/pret-a-porter/electron-grpc
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/pret-a-porter/electron-grpc
- Owner: pret-a-porter
- License: mit
- Created: 2022-01-20T11:36:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T13:10:43.000Z (over 2 years ago)
- Last Synced: 2024-10-25T16:14:52.157Z (14 days ago)
- Language: TypeScript
- Size: 2.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Electron gRPC
## Quick start
1. `npm install`
2. `npm run start:server`
3. `npm run start`## Comparsion
11 columns. 1 nested object. Server emits batch every 10 milliseconds.
Render only current count of batches. Log in devtools only size of received batch.
Therefore almost no additional tasks, only handling data from server stream.
Time of handling 100 batches in milliseconds. CPU usage in brackets.| Batch size | gRPC | WebSocket |
|------------|------|-----------|
| 1000 | 1119.699 (30%) | 1097.100 (34%) |
| 10000 | 1588 (96%) | 3257.399 (97%) |
| 30000 | 4970 (98%) | 9794.599 (100%) |
| 50000 | 8189.600 (98%) | 16256 (100%) |
| 100000 | 15919.900 (98%) | 35930.100 (100%) |