solidjs / solid-site

Code that powers the SolidJS.com platform.
https://www.solidjs.com
159 stars 173 forks source link

"Comparison with other frameworks" page: code size comparison #501

Open avelican opened 9 months ago

avelican commented 9 months ago

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)

ryansolid commented 9 months ago

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.