-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Performance & Security] Dramatic Performance Regression from 0.11.7 to 14.5.8 #2428
Comments
@CreatCodeBuild Thanks for reporting 👍 |
Can we make this an argument of graph function because we have other NODE ENV that needs it as well. |
@CreatCodeBuild It will require HUGE code changes almost every function will have an additional argument so I can't do that.
As the last resort, you can try to fork this lib and change this file: |
Reporting issues with GraphQL.js
I was using 0.11.7 and recently updated to 14.5.8. The performance of GraphQL layer decreased by about 60%.
Here is an example
Notice that I am not measuring the time when the promise is resolved. I am only measuring the time spent in the synchronous code that creates the promise.
I ran it N * 100 times in a loop. Here is the average in ms.
2 surprising find out:
Of course, in a real scenario, the amount of traffic would be as fast as a for loop so that I never get this heap dump error in production.
My question are:
The text was updated successfully, but these errors were encountered: