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
Test the built -in server is very slow, use ApacheBench. #50852
Comments
Compare with a Golang Gin service Requests per second: 14790.47 [#/sec] (mean)
|
use sample api route Requests per second: 908.80 [#/sec] (mean)
|
I think this is a problem, because this performance is extremely low. |
The simple API request should have a faster speed, and the results are not. There must be any problems here. |
I think I know where the problem is and the solution to the problem. I started two services with the same configuration, just different port numbers different. config nginx.conf
Nearly double performance improvement. |
@zhang-wenchao Im also facing similar issue when i test load with 30 users, app getting 502. |
Verify canary release
Provide environment information
$ npx --no-install next info Operating System: Platform: linux Arch: x64 Version: #1 SMP PVE 5.15.107-2 (2023-05-10T09:10Z) Binaries: Node: 18.16.0 npm: 9.5.1 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.5-canary.6 eslint-config-next: 13.4.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
Middleware / Edge (API routes, runtime)
Link to the code that reproduces this issue or a replay of the bug
npx create-next-app@latest
To Reproduce
use default config.
Describe the Bug
Very slow response speed and concurrency.
Expected Behavior
Real:
Estimate
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next start
The text was updated successfully, but these errors were encountered: