Comment by resonious
6 days ago
It does work well logically but performance is pretty bad. I had a nontrivial Rust project running on Cloudflare Workers, and CPU time very often clocked 10-60ms per request. This is >50x what the equivalent JS worker probably would've clocked. And in that environment you pay for CPU time...
The rust-js layer can be slow. But the actual rust code is much faster than the equivalent JS in my experience. My project would not be technically possible with javascript levels of performance
That's fair and makes sense. In my case it was just a regular web app where the only reason for it being in Rust was that I like the language.
did you profile what made it so slow specifically? sounds waaaaay worse than I would expect
1 reply →
the JS layer is slow, indeed, but it shouldn't be that much slower that it meaningfully impacts frontend apps
A demonstration of that by the creator of Leptos:
https://www.youtube.com/watch?v=4KtotxNAwME
Fascinating video, thanks for sharing.