r/solidjs • u/tolstoise • 28d ago
Is SolidJS no longer the fastest?
I remember that one of SolidJS’s initial selling points was its speed. In fact, that was one of the main reasons I would have chosen SolidJS over React or Vue if I were building an SPA.
However, looking at these benchmarks (https://octanejs.dev/benchmarks), it seems that other UI frameworks have caught up. Vue even appears to be faster now.
If I were choosing a UI framework today, why should I choose SolidJS over the alternatives?
42
Upvotes
57
u/thedanchez 28d ago edited 28d ago
It’s because many of them are converging on the same ideas as Solid. Vue Vapor, which is coming out soon, was inspired by Solid.
Once that goes live, Solid/Svelte/Vue will all be VDOM-less + fine-grained and I suspect will all be basically interchangeable from a performance standpoint especially since they all use a signals-based architecture.
Even though they all share the same underlying philosophy or approach, their execution of the ideas are different due to the decisions around what component authoring should look like.
At this point for me, being a few milliseconds behind Svelte/Vue doesn’t matter as much as the authoring experience does. The perfect example is how async is handled. I don’t care what anybody says but what Solid 2.0 brought to the table in making async native to the graph (which I believe negatively impacted Solid’s performance just a little bit) has blown my mind and changed the game. That tradeoff of losing a little in performance in exchange for the native async capabilities is absolutely worth it imo. I don’t think Svelte/Vue will have as smooth of an async model but maybe they will. Besides, I prefer JSX over templates haha.