2 ms·
From some very casual testing on GCP cloud run a custom rust container performs tangibly better than go or python containers (built with GCP web UI) on mem, lat
by Havoc 4y ago
From some very casual testing on GCP cloud run a custom rust container performs tangibly better than go or python containers (built with GCP web UI) on mem, latency and start metrics.
Definitely an apples vs oranges comparison (scratch docker vs whatever GCP's usual go/py container is) but was still surprised how much scope for improvement there is over their presumably optimised default runtimes
- tiew9Vii 4y agoRust on Lambda's using containers as the deployment artifact are also very good, i'd say a perfect match. Low artifact size, low cpu+memory usage, fast execution. I think AWS must be using increasingly using Rust on Lambda internally from the talks I've seen them publish and the work gone in to https://github.com/awslabs/aws-lambda-rust-runtime https://github.com/awslabs/aws-lambda-rust-runtime. For simple REST API's there's not much extra effort in using Rust once you are familiar.