Chrome 59 with TurboFan is Sometimes Slower than 58
prerender.cloud
prerender.cloud
Given the V8 team has explicitly stated the plan to optimize for real websites rather than synthetic benchmarks [1] these results look completely appropriate and desirable. Good work V8 team!
https://blog.chromium.org/2017/04/real-world-javascript-perf...
My Ferrari is also sometimes slower than my VW Beetle, when driving on a uneven dirt road .
Isn't that exactly what they were going for?
Anyway, there are so many engineering trade offs its like a big water balloon, squeeze it here and it gets faster in this spot, but slows down somewhere else. When, what you really need is a way to let some of the water out of the balloon.
(Source: https://github.com/WebAssembly/design/blob/master/GC.md)
Literally unbrowsable.
For example: you load the app in your headless browser and let it load as would in any browser. The browser fires some events and XHR/WebSocket requests and you can cleanly wait for them to finish as opposed to doing something like this: https://techbrunch.gousto.co.uk/2016/10/10/isomorphic-react-... which requires you to do some extra configuration in your app to help support a Node environment.
TL;DR: ReactDOMServer.renderToString won't wait for your async requests to finish, you need them to execute and finish before you call renderToString
If you care about performance you should design an architecture where it's possible to determine exactly which parts should and can be executed on the server.
But in either event, the parent was directly replying to someone whose experience suggests Chrome's memory usage is a problem. Telling him to just add more RAM is disingenuous because that's simply not possible in many (probably most) cases now. Taking him at his word that memory consumption is a problem, what's the real solution?
Frankly, I'm in the same boat. And it's a trivial search to find numerous people that find the increasing memory usage of Chrome to be problematic. For my part, it's been a long time since I've visited a site and wished it did something faster that wasn't directly attributable to a bad code pattern in use on that site. Continuing to improve performance here has been of minimal benefit while increasing memory consumption is something I feel acutely.
This is sometimes devastating for me, as described here:
https://news.ycombinator.com/item?id=14617175
so decreasing memory usage would greatly help here.