Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avelican opened this issue Nov 28, 2023 · 1 comment
Open

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

avelican opened this issue Nov 28, 2023 · 1 comment

Comments

@avelican
Copy link

avelican commented Nov 28, 2023

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
Copy link
Member

ryansolid commented Nov 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants