Performance degradation in node v22 #6500
amgadserry
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have a question regarding express v4/5 performance inconsistency running on node v18 vs node v22
Images below are from a bare minimum express setup code attached below just
nvm use
in each thennpm run start
these are samples but I run these tests over 10 times with different time frames etc and v22 is consistently showing this behaviornode v22 ( 15.3k req/s )
node v18 ( 17.3k req/s )
so the overall performance is not degraded by that much but the per request latency had a major impact, slowest in v18 is 0.07s which slowest request in v22 is 3s u can also see that that difference in the latency histogram, we have also noticed that in a recent upgrade in production where health check is failing under high load, while the same build using v18 is surviving the same load
anyone is experiencing the same or have an idea what I'm actually doing wrong ?
Thanks,
Code used for this test ( full code below )
Archive-1.zip
Note: I also posted on slack here https://openjs-foundation.slack.com/archives/C02QB1731FH/p1746189447244249
Beta Was this translation helpful? Give feedback.
All reactions