Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yup, Java is fast, but OP shared that Rust used 7 MB to do the same thing for which Java used 240 MB.


From looking at the traces, the performance difference between the two is minimal (on a per op basis). This mainly because both the Java and Rust services don't do much beyond interfacing with Redis/Tile38.

The impressive and important thing is the amount of resources used in performing their tasks. With a little math you can see that I have 64GB RAM, which is plenty. What remains scarce is CPU cycles, so if I can do more on the same machine; I'm happy.


Nice post. I will be really curious to see the same microservice done with Go and compare all of them.


My Go is very basic, but I can follow up with a Go impl and compare it with Rust. The code shouldn't take an experienced Go programmer more than an hour, as it's mainly mapping gRPC calls to Redis calls.


Please do. I'm interested as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: