Svelte's TodoMVC Build Was 3.6 KB Zipped Against 45 KB for React
One number did more to sell Svelte than any conference talk: the Svelte implementation of TodoMVC, the standard to do list benchmark app, weighed about 3.6 KB zipped. React plus ReactDOM, with no application code written at all, weighed in at roughly 45 KB. Same feature set on the screen, an order of magnitude difference in what the user downloads. That comparison appeared again and again in write ups about Svelte, and it is the shortest explanation of why a compiled framework won so many converts.
The reason for the gap is architectural. React ships a runtime to the browser: a small virtual DOM implementation, a scheduler, and the reconciliation logic that figures out what changed between renders. Your components describe state, and that runtime works out the DOM operations at run time. Svelte, by contrast, does the work at build time. The compiler reads your component, understands which values drive which parts of the markup, and emits small imperative JavaScript that updates exactly those nodes. There is no generic diffing engine to ship, because the compiler already knew the answer. The framework largely disappears once your bundle is built.
Rich Harris, who created Svelte at The Guardian, made the argument explicit in his 2018 essay on virtual DOM overhead, and Svelte 3 in April 2019 pushed reactivity into the compiler rather than a runtime layer. The consequence shows up directly in bundle size, and bundle size is not a vanity metric. On a slow mobile connection, every extra kilobyte has to be downloaded, parsed, compiled, and executed before the page becomes interactive. A 45 KB baseline of framework code is paid on every first visit to a site built with a runtime framework, while a compiled app can hand over a page whose interactive budget is spent almost entirely on features the user can actually see.
A senior developer should also know where the headline number is unfair, because knowing both sides of an argument is what makes you credible in a design review. The 45 KB figure describes React and ReactDOM alone. Real applications add a router, a state manager, internationalization, icon sets, and a pile of third party components, so the gap as a percentage of the final bundle is narrower than the raw numbers suggest, even though React's fixed cost remains. Compression helps the framework code more than application code, since runtime source compresses well. And because a vendor chunk in a long lived application is usually cached after the first visit, repeat visitors pay far less than the number implies. If your users visit once from a search result, the baseline dominates. If they return daily to an app with a service worker, it matters much less.
The story also kept evolving, which is a useful correction to anyone quoting a 2019 benchmark in a 2026 decision. Svelte 5 moved to a signals based reactivity model and ships a small runtime of a few kilobytes instead of compiling every bit of reactivity away. In practice bundles shrank for many larger applications, but the claim that Svelte has no runtime is no longer literally true, and some teams did report modest growth when migrating from Svelte 4. Frameworks do not stay still, and neither do their size profiles.
So how should you use the 3.6 KB versus 45 KB comparison in your work? Treat it as a reason to measure your own baseline, not as a reason to pick a framework on faith. Build a bare page in each candidate and look at the transfer size and the time to interactive on a throttled connection. The compiled approach tends to win hardest in places where that baseline is a large share of the total: embedded widgets, documentation sites, dashboards on low end hardware, and marketing pages where a single visit from search is the norm. Where the framework cost is amortized, cached, and dwarfed by application code, the difference is real but rarely decisive.
The comparison has stayed famous because it made an invisible cost visible. Most developers had never added up what the runtime alone cost per page view. Once that number was on the table, the same question started being asked of every dependency in the stack, and both sides of the frontend world got leaner as a result. That is the lasting value of a good benchmark, even when the specific kilobytes have shifted.