Skip to content

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

@a-n-d-a-i

Description

@a-n-d-a-i

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions