3 ms·
All of those are very different among them so it's difficult to say but generally speaking because all are faster and more light weight. Mithril gives you comp
by pier25 7y ago
All of those are very different among them so it's difficult to say but generally speaking because all are faster and more light weight.
Mithril gives you components + vdom + router + http client in 10kB gzipped. Performance is faster than React + Redux. I think it's the most zen and elegant of all options since your state is basically vanilla JS but that's very subjective.
Inferno and Preact are very React-y. Inferno is much much faster than React. Preact is much much smaller than React. With both you can add a compat layer to use React libraries.
Svelte is another beast altogether. Instead of a vdom it compiles your code to super efficient impertive DOM manipulation code which produces extremely small and fast apps. I don't love the ergonomics but the results are super impressive.
See these benchmarks for my claims about size and speed:
https://krausest.github.io/js-framework-benchmark/current.html https://krausest.github.io/js-framework-benchmark/current.ht...
- ng12 7y agoWhy do you care about optimizing perf so much? React and even Angular are fast enough that you should never need to worry about any sort of perf hacking, and I would argue that if perf is the number-one concern for your use case you shouldn't be using a framework at all. The primary thing I care about when comparing frameworks is developer productivity. Bundle size is a moderate concern, saving 50-100ms to re-render a giant table doesn't even make the list.
- dentemple 7y agoFor general use-cases, I doubt the performance benefit matters as much as engineers claim that it does. But there are more specific use-cases where it would indeed matter. Hand-held devices, high calculation loads, etc. Even Dan Abramov's popular talk on React Suspense shows that even the newest versions of React begin the chugg under the influence of an extreme performance situation.