Benchmarking binary sizes of web components

I made some benchmarks of similar web components in different frameworks. No surprises, all binaries where small. The smallest one uses Kaja Web and the largest one uses Dioxus. The biggest one was almost seven times bigger than the smallest one. Here is the table: WebAssembly component size benchmark

Here is the code if you want to double check my results: benchmarks · kaja-web

97K for a button is a lot. What you're really measuring here is the framework overhead (dependencies, reactivity, etc) and given that Kaja does not use and kind of dependency tracking and automatic update in the button (the update is done by hand) the result is pretty obvious.

Thank you for the comment. There is indeed an overhead, things are happening under the hood and there is code to instantiate the component. The size only makes sense as compared to other frameworks and does not say that much on its own. I would argue it would be hard if not impossible to get down lower than 50 kB overhead for any meaningful functionality even if it is just a button that counts clicks.