How does Rust async compare to Goroutine, Erlang threads, Javascript async, Java async in performance and memory usage? Is there any benchmarks for that?
There were benchmarks and a discussion on this on reddit recently comparing goroutines to tokio.
If I recall correctly tokio was slower than goroutines but if you set the right settings it could be almost as fast.
https://www.reddit.com/r/rust/comments/lg0a7b/benchmarking_t...
I'd think mostly similar. Goroutines are "stackful" coroutines, though, so their memory use will be higher. They have an interesting stack copying model, so I'm not sure if they require as many pages as POSIX threads do. (Having a "denser" memory space and no guard page requirement would mean you could use huge pages and thus have much less TLB pressure.)