InversifyJS
InversifyJS copied to clipboard
[inversify-express-utils] Performance - latency
After performing load test (with artillery js) on multiple frameworks I found inversify-express-utils performance to be behind the competitors and plan express.js.
Expected Behavior
- Latency shouldn't reach above 200ms
- Requests per second is a bit lower than competitors
Current Behavior
- Latency is ~400 ms
- Mean RPS is ~460
Possible Solution
Steps to Reproduce (for bugs)
- Run inversify-express-utils server with single endpoint that returns a string (I used the inversify express utils demo)
- Use artillery for load test:
artillery quick --count 50000 -d 20 http://127.0.0.1:3000/ -o "./benchmark.json"
- Generate html report:
artillery report benchmark.json
.
Context
I would like inversify-express-utils to be with the best performance it can.
References
Generated reports: Express NestJS Inversify
Your Environment
- AWS EC2: -- Node v8.11.1 -- Ubuntu 18.04.2 -- 2 GB Ram -- 1 CPU
Any update?
Any update?
hi, have you got the answer?
@04116 unfortunately no
I actually run some test myself using autocannon
. the performance is horrible compared to nest
or to express
itself. Unfortunately I can't seem to find the biggest bottleneck here.
@o-b-one @04116 did you do any investigation, maybe share some findings ?