Earlier quoted context omitted.
They include a comparison with using ES6 Template literals (native JavaScript string interpolation), and saw 10x increase over React. The native string interpolation actually came out just behind serving straight static files. JavaScript CPU performance is actually quite high among interpreted languages. So to answer your question more specifically, no I don't think it is clear. What this is specifically isolating as…
Does anyone actually use vanilla JavaScript string literals for all their backend rendering?
The Performance Cost of Server Side Rendered React on Node.js
31–40 of 134 posts
Re: The Performance Cost of Server Side Rendered React on Node.js
#32I thought the idea was to render it server side just once, then have the client take over for all future requests? In which case it's 10x slow for the first page load, but all future requests are just hitting API endpoints and can be fairly fast?
Sure, but every user has to do that initial page load. If all initial page loads are slow and expensive, it affects the user experience and costs money. Also, if you start getting requests faster than you can do the initial render, each subsequent user has to wait in line longer than the one before. Your server-side framework won't even show you how long people waited for a TCP connection.
Of course then you get into the fun of cache management and invalidation.
Re: The Performance Cost of Server Side Rendered React on Node.js
#33well wasn't that clear? Isn't something like a Template Engine quite CPU intensive? Things were node.js performce poorly?
Re: The Performance Cost of Server Side Rendered React on Node.js
#34Re: The Performance Cost of Server Side Rendered React on Node.js
#35If/when React gets real streaming it will compete better with traditional templating engines, most of which don't do streaming. If you use Node.js and want a traditional templating engine that uses JS template literals and does do streaming, check out my project: https://github.com/matthewp/flora
Re: The Performance Cost of Server Side Rendered React on Node.js
#36React definitely needs work here and i think the right people are quite aware of the issues.
Re: The Performance Cost of Server Side Rendered React on Node.js
#37Re: The Performance Cost of Server Side Rendered React on Node.js
#38OK from single core $10 VPS you will be able to serve 1,080,000 unique initial loads per hour and depending on your pattern of traffic say 15,000,000 in a day could you remind me what the issue is again?
Re: The Performance Cost of Server Side Rendered React on Node.js
#39OK from single core $10 VPS you will be able to serve 1,080,000 unique initial loads per hour and depending on your pattern of traffic say 15,000,000 in a day could you remind me what the issue is again?
Re: The Performance Cost of Server Side Rendered React on Node.js
#40Node.js templating engine benchmarks:
https://github.com/marko-js/templating-benchmarks
Framework SSR benchmark (Vue, React, Preact, Rax, Marko):
https://hackernoon.com/server-side-rendering-shootout-with-m...