InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

[inversify-express-utils] Performance - latency

Open o-b-one opened this issue 5 years ago • 4 comments

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)

  1. Run inversify-express-utils server with single endpoint that returns a string (I used the inversify express utils demo)
  2. Use artillery for load test: artillery quick --count 50000 -d 20 http://127.0.0.1:3000/ -o "./benchmark.json"
  3. 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

o-b-one avatar Feb 16 '19 21:02 o-b-one

Any update?

o-b-one avatar Apr 03 '19 20:04 o-b-one

Any update?

hi, have you got the answer?

04116 avatar Jan 25 '21 07:01 04116

@04116 unfortunately no

o-b-one avatar Feb 02 '21 06:02 o-b-one

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 ?

PodaruDragos avatar Dec 15 '21 12:12 PodaruDragos