-
-
Notifications
You must be signed in to change notification settings - Fork 168
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 #2
Comments
Hi @franciscop, I just came upon this project and am intrigued. However, can you help me understand, what exactly you mean by:
|
Ah sorry, it means that when comparing performance, |
That's what I thought, it just seemed like quite a big difference so I thought I'd ask. But would I be correct in assuming the number of requests you were feeding express.js in this performance test was quite a lot higher than would be expected for a small or medium project (as per use cases identified in readme)? |
Sure! There are two things:
I had a project using server.js more heavily than normal (5 requests to the library/visit) on the main page of Hacker News without a problem (50% of CPU peak and it was mainly to parsing the HTML). So yeah, there's no problem with performance for those projects. |
At this stage performance is something not to worry about; however it is a future concern so this thread should work as a general guideline and plan. Server's big advantage has nothing to do with performance so as long as it's competitive performance-wise it's okay.
Usability >> performance.
Optimize only the slowest paths. No micro-optimizations that don't change the bottom line.
A bunch of it will probably come for free as V8 gets improved, notably on Promises-related code. See this.
The objective for 1.x is that
server
performs decently when compared with raw Express 4.0 (in which it's based). Right now it can perform 37.4% of the total requests that express can for a hello world example.The text was updated successfully, but these errors were encountered: