Post

Y'ALL. Portable HTML Web Components are fucking cracked. It looks like they are **faster** than the fastest Vanilla JS implementation in the JS Framework Benchmark. I literally reran the benchmark 5 times because I didn't believe it, but every single time they came in first place 🤯

I dunno if this is a great test for web components. It’s just one big component that’s very brittle and imperative. Kinda the problem with all these kinds of benchmarks, no one seems to test realistic code.

Oh yeah I agree, this *is* an unrealistic implementation of web components and likewise a lot of the other implementations of this benchmark are unrealistic/extremely optimized as well But alas this is the benchmark that is most commonly referred to in the web framework world so here we are 🤷‍♂️

0 reposts0 likes

Yeah, we can make a single CE wrapper, then everything inside can be vanilla JS basically, which is not really representative of a real world app (lots of nested components, child slotting, events, strung properties, etc, etc. It would be awesome to update the tests for more of these scenarios.