Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

SSR benchmarks #249

Open
ctrlplusb opened this issue Dec 15, 2016 · 15 comments
Open

SSR benchmarks #249

ctrlplusb opened this issue Dec 15, 2016 · 15 comments

Comments

@ctrlplusb
Copy link
Owner

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

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

@ctrlplusb
Copy link
Owner Author

@ctrlplusb
Copy link
Owner Author

@ctrlplusb
Copy link
Owner Author

If performance matters to you then preact is the way.

We need to get a full preact branch going.

@lucianlature
Copy link
Collaborator

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.

@ctrlplusb
Copy link
Owner Author

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

@maximblack
Copy link

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

@ctrlplusb
Copy link
Owner Author

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
Copy link
Owner Author

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

@ctrlplusb
Copy link
Owner Author

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

@elodszopos
Copy link
Contributor

Just something to look forward to regarding SSR improvements:

facebook/react#6420

More specifically Dan's comment facebook/react#6420 (comment)

@codepunkt
Copy link
Collaborator

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

@ctrlplusb
Copy link
Owner Author

@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

@markudevelop
Copy link

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?

@ctrlplusb
Copy link
Owner Author

Another interesting addition...

https://github.com/FormidableLabs/rapscallion

@ctrlplusb
Copy link
Owner Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants