inversify / InversifyJS

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
http://inversify.io/
MIT License
11.3k stars 717 forks source link

[inversify-express-utils] Performance - latency #1046

Open o-b-one opened 5 years ago

o-b-one commented 5 years ago

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

Current Behavior

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

o-b-one commented 5 years ago

Any update?

04116 commented 3 years ago

Any update?

hi, have you got the answer?

o-b-one commented 3 years ago

@04116 unfortunately no

PodaruDragos commented 2 years ago

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 ?