Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemerajs/microservice-benchmark
Simple benchmark for microservice frameworks in Node.Js which support NATS as transport.
https://github.com/hemerajs/microservice-benchmark
benchmarks hemera
Last synced: 3 days ago
JSON representation
Simple benchmark for microservice frameworks in Node.Js which support NATS as transport.
- Host: GitHub
- URL: https://github.com/hemerajs/microservice-benchmark
- Owner: hemerajs
- License: mit
- Created: 2017-10-03T18:04:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T21:10:05.000Z (almost 7 years ago)
- Last Synced: 2024-11-14T23:08:21.588Z (2 months ago)
- Topics: benchmarks, hemera
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌀 Microservice Framework Benchmark
This is a simple benchmark for microservice frameworks in Node.Js which support NATS as transport.## Install
```
$ npm install
```## Run NATS
https://nats.io/documentation/tutorials/gnatsd-install
## Frameworks
- Hemera 5.0.1
- Seneca 3.4.3
- Moleculer 0.12.1## Run simple test
- Start one consumer
- Send 1000 msg for 2 rounds from one producer```
$ npm run simple
```### Result
```
Platform info:
==============
Windows_NT 10.0.16299 x64
Node.JS: 8.9.0
V8: 6.1.534.46
Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz × 4
==============
Wait 1 second and send 2x 1000 msg
==============
benchHemera*1000: 250.641ms
benchMoleculerNats*1000: 433.571ms
benchHemera*1000: 201.187ms
benchMoleculerNats*1000: 355.256ms
benchSenecaNats FAILED
```## Run complex test
- Start x (cpu count) consumer in seperate child processes
- Send 10000 messages for 2 rounds from one producer```
$ node ./hemera/cluster.js
$ node ./hemera/fire.js$ node ./moleculer/cluster.js
$ node ./moleculer/fire.js$ node ./seneca/cluster.js
$ node ./seneca/fire.js
```### Result
```
Platform info:
==============
Windows_NT 10.0.16299 x64
Node.JS: 8.9.0
V8: 6.1.534.46
Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz × 4
==============
benchHemera*10000: 1801.420ms
benchHemera*10000: 1591.466ms
benchMoleculerNats*10000: 3848.300ms
benchMoleculerNats*10000: 3511.714ms
benchSenecaNats FAILED
```## TODO
- [ ] Start multiple producer and bench
- [ ] Bench consuming