react-universally icon indicating copy to clipboard operation
react-universally copied to clipboard

SSR benchmarks

Open ctrlplusb opened this issue 8 years ago • 15 comments

https://github.com/Aweary/ssr-benchmarks

Interesting. Keep an eye on this. preact looks to be awesome in SSR perf.

ctrlplusb avatar Dec 15 '16 16:12 ctrlplusb

https://twitter.com/dan_abramov/status/808813191383879680

ctrlplusb avatar Dec 15 '16 16:12 ctrlplusb

https://twitter.com/aweary/status/809107792036446208

ctrlplusb avatar Dec 15 '16 16:12 ctrlplusb

If performance matters to you then preact is the way.

We need to get a full preact branch going.

ctrlplusb avatar Dec 15 '16 16:12 ctrlplusb

I'm having some issues trying to make preact working with React Router v4, but I hope to find some hacky way to glue those two together this weekend.

lucianlature avatar Dec 15 '16 16:12 lucianlature

We may have to look at alternatives in terms of the router.

ctrlplusb avatar Dec 15 '16 21:12 ctrlplusb

We can solve the SSR slow render times for React, with caching, for example: https://github.com/electrode-io/electrode-react-ssr-caching

maximblack avatar Dec 16 '16 08:12 maximblack

That is super cool @maximblack! Thank you. I love it's pragmatic approach of profiling and then configuring. Great to have the props call in too.

ctrlplusb avatar Dec 17 '16 21:12 ctrlplusb

There are tons of considerations when optimising your app for SSR. It would be great to get a readme section going for it.

ctrlplusb avatar Dec 20 '16 09:12 ctrlplusb

Another great resource on this subject: https://github.com/walmartlabs/react-ssr-optimization

ctrlplusb avatar Dec 23 '16 21:12 ctrlplusb

Just something to look forward to regarding SSR improvements:

https://github.com/facebook/react/issues/6420

More specifically Dan's comment https://github.com/facebook/react/issues/6420#issuecomment-260322106

elodszopos avatar Dec 29 '16 08:12 elodszopos

@elodszopos That is all very vague unfortunately. It's a pity that ssr is not high on the priority list of the core team 😞

codepunkt avatar Dec 29 '16 10:12 codepunkt

@elodszopos @codepunkt

React Fiber is definitely going to help! :) I am very much looking forward to it.

Here is a great video in which Dan and Andrew explain React Fiber really well.

https://www.youtube.com/watch?v=N3zh4jBaCeQ

ctrlplusb avatar Dec 29 '16 10:12 ctrlplusb

caching is still slow, it takes 20ms-30ms still after caching which is chocking the server because it's sync and not async rendertostring @maximblack had any tips for that?

markudevelop avatar Jan 17 '17 20:01 markudevelop

Another interesting addition...

https://github.com/FormidableLabs/rapscallion

ctrlplusb avatar Mar 01 '17 22:03 ctrlplusb

@voidale ensure that NODE_ENV=production on server else you get development edition of react running for SSR renders.

ctrlplusb avatar Mar 01 '17 22:03 ctrlplusb