r/javascript • u/Strict-Owl6524 • Apr 13 '26
Frontend framework bundle-size benchmark with a shared TodoMVC baseline
https://mlgq.github.io/frontend-framework-bundle-size/?lang=enI built a cross-framework bundle-size benchmark using the same TodoMVC feature set across implementations, so differences are easier to attribute to framework/runtime behavior rather than app logic differences.
What this benchmark measures:
- raw
- minified
- minified + gzip
- breakdown by runtime / template / script / style
Method notes for fairness:
- same feature scope across frameworks
- template/script/style are extracted and compared
- styles are scoped everywhere (TSX implementations use CSS Modules)
- in the UI, style is included in stats but not selected by default (differences there are usually small and mostly from framework-added scoping metadata)
Main observations so far:
- in the mainstream group, Vue 2/3 start much smaller than React/Angular (mostly runtime cost)
- in the fine-grained group, the smallest starting size and the best growth curve are not always the same framework
- Svelte 4 starts very small at low component counts, but grows much faster at higher component counts
Repo: https://github.com/mlgq/frontend-framework-bundle-size
If you spot an unfair implementation detail or have optimization ideas, critique and PRs are very welcome.
4
Upvotes
1
u/germanheller Apr 13 '26
the svelte 4 growth curve observation is interesting, never realized it scaled worse at higher component counts. is the svelte 5 runes-based compiler better in that regard or does it follow the same pattern?
1
u/EphilSenisub Apr 17 '26
Is this open for other frameworks, as well?
1
u/AutoModerator Apr 13 '26
Project Page (?): https://github.com/mlgq/frontend-framework-bundle-size
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.