rawact icon indicating copy to clipboard operation
rawact copied to clipboard

Comparison to preact, Inferno, nervjs?

Open brody4hire opened this issue 6 years ago • 2 comments

  • React compatibility
  • performance (will hopefully see this one in an updated js-framework-benchmarks report)

brody4hire avatar Nov 13 '18 16:11 brody4hire

At least of performance here are some metrics:

image

image

Note that rawact is still a POC so the results may change:

  • Getting better when we do additional optimization
  • Getting worse when we add additional features

The goal of rawact is high react compatibility. The idea of compilation is to only include features that are used. i. e. when using only React.Component, hooks are not included and vise versa. When used they are included at the place where they are used. i. e. using hooks only a on-demand-loaded part of your app => the hooks feature is only included in that part, so it also loads on demand.

Another goal is that some features can enabled/disable at compile-time (like concurrent rendering vs sync rendering). So users can choose for compatibility vs rendering performance vs startup speed.

sokra avatar Nov 16 '18 08:11 sokra

Awesome, thanks!

brody4hire avatar Nov 16 '18 16:11 brody4hire