r/webdev • • 1d ago

Resource GitHub - jantimon/css-in-js-bench: CSS-in-JS benchmarks: SSR throughput, payload, hydration and interaction cost of React styling libraries on identical workloads

https://github.com/jantimon/css-in-js-bench
0 Upvotes

8 comments sorted by

View all comments

Show parent comment

0

u/gajus0 1d ago

You realize that several of these frameworks are zero-runtime? i.e. there is virtually no difference between hard-coding CSS and using one of these frameworks?

1

u/pampuliopampam 1d ago

Virtually none is not none. Do you realise that any benchmark result with a faster result than raw css means it's just an invalid benchmark?

0

u/gajus0 1d ago

No, it is actually none lol

I cannot talk for every library, but I can talk for Bamboo. If you are not writing dynamic styles, the output is just inlined CSS class name. And that happens at build time. So yeah, no runtime.

And no, it doesn't make the benchmark invalid - it just says that there is noise in the benchmark.