Performance with output: 'standalone'
mode
#75930
Unanswered
jonathanhefner
asked this question in
App Router
Replies: 1 comment 7 replies
-
@samcx I see you converted issue #75920 into this discussion. I originally considered making it a discussion, but the benchmark results were so extreme (> 100x slower!) that it seemed worthy of being considered a bug. Or are all performance-related problems handled as discussions instead of issues? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to the code that reproduces this issue
https://github.com/jonathanhefner/next-techempower-benchmarks
To Reproduce
I recently submitted Next.js to be included in the upcoming round of TechEmpower Web Framework Benchmarks (see TechEmpower/FrameworkBenchmarks#9506). The results have not been publicly released yet, but you can preview them.
Compared to other frameworks, Next.js performance is unexpectedly poor. For example, here are the results for all Node-based frameworks for a simple API endpoint benchmark:
The code for that endpoint is just
So I believe the poor performance is due to Next.js overhead.
Current vs. Expected behavior
Currently, Next.js performance is much worse than other frameworks across multiple types of synthetic benchmarks. For example, see also the "Plaintext" benchmark results and "Single query" benchmark results.
Synthetic benchmarks aren't necessarily representative of real-world performance, but I expect Next.js to at least be competitive with other web frameworks.
Provide environment information
Which area(s) are affected? (Select all that apply)
Performance
Which stage(s) are affected? (Select all that apply)
next start (local), Other (Deployed)
Additional context
In case it is relevant, this is the
Dockerfile
for the app.See https://www.techempower.com/benchmarks/#section=environment for benchmark environment details.
Beta Was this translation helpful? Give feedback.
All reactions