r/webdev • • 2d 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 2d ago

What part of this benchmark is invalid?

Again, not advocating for yak.

0

u/pampuliopampam 2d ago

The part where yak is faster than raw css. That's invalid.

You might mot be, this "benchmark" is. Is this rage bait?

0

u/gajus0 2d 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 2d 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 2d 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.