Show HN: Jsbenchmarks.com – Real-world JavaScript framework benchmarks

2 pointsposted 6 hours ago
by harmtrav

3 Comments

harmtrav

6 hours ago

I built this as an alternative to js-framework-benchmark because those benchmarks are easy to game with framework-specific optimizations.

jsbenchmarks.com is an attempt to focus on real-world patterns: mixed updates, typical DOM complexity, and common operations.

The results surprised me: Angular performs best, while Solid and Svelte (which dominate traditional benchmarks) are near the bottom. I'm sure the Solid and Svelte implementations could be improved and I welcome PRs.

Would love feedback on the methodology and what other scenarios to test.

rich_harris

5 hours ago

The Svelte implementation is very inefficient. With a small change I was able to get it to the number two spot on both duration and memory, at least running on this machine. Thyn is in the top spot on both counts — not _hugely_ surprising for a brand new project, but impressive nonetheless.

React, needless to say, languishes at the bottom.

Will send a PR to fix the Svelte implementation.

harmtrav

4 hours ago

Thanks for the PRs. Will update it soon.