Sounds improbable. Unlike Ruby, JavaScript has multiple runtime implementations with capable JIT compilers that sometimes let it even compete with Java on numeric code. Ruby is very, very far away. Please note that Elixir is also in the same single-threaded performance ballpark as Ruby and Python, of course it does not suffer from any of the single-threaded bottlenecks the other two do though.
Tl; dr: color me genuinely surprised.
---
I have now done several Google searches to - well, admittedly, to try and counter your argument; but what I've since found is:
On a more readable and easily-filtered version (that has very differnet answers) [1], * plain Javascript (not Next.js) has gotten *REALLY* fast, serverside * Kotlin is (confusingly?!) often slower than JS, depending on the benchmark ^-- this one doesn't make sense to me ^-- in at least one example, they're basically on par (70k rps each) * Ruby and Python are painfully slow, but everyone else sorta sits in a pack togetherI will probably be able to find another benchmark that says completely different things.
Benchmarking is hard.
I'm also having trouble finding the article from HN that I was sure I saw about Next.JS's SSR rendering performance being abysmal.
[0] https://www.techempower.com/benchmarks/#section=data-r23
[1] https://web-frameworks-benchmark.netlify.app/result?asc=0&f=...