solid-site icon indicating copy to clipboard operation
solid-site copied to clipboard

"Comparison with other frameworks" page: code size comparison

Open a-n-d-a-i opened this issue 2 years ago • 1 comments

Hello! Hope this is the right place for this. I was reading Solid's Comparison With Other Libraries, which says:

Solid's RealWorld demo implementation is 25% smaller than Svelte's.

There is no link here, but this appears to refer to these two repos https://github.com/solidjs/solid-realworld https://github.com/sveltejs/realworld

I'm curious how this was measured. I ran cloc on the src folder for each project and I get 1248 lines for Solid and 1138 for Svelte (so the Svelte version is about 9% smaller) i.e. the opposite of what the website says. Perhaps I am measuring incorrectly? (Or perhaps the website referred to an older version of one or both projects?)

(Side note, looks like Svelte's RealWorld project is built with Svelte 3. The Svelte 5 version will probably be a bit bigger due to the more explicit coding style introduced with Runes https://svelte.dev/blog/runes)

a-n-d-a-i avatar Nov 28 '23 01:11 a-n-d-a-i

I meant generated bundlesize in kilobytes not code written. I talked specifically about this demo in this article. https://levelup.gitconnected.com/a-solid-realworld-demo-comparison-8c3363448fd8

And yeah we've all gotten a little larger since then.

ryansolid avatar Nov 28 '23 01:11 ryansolid