Measuring runtimes

Compare Java, Python, Node, and Rust on the same workload with Prometheus and Grafana, then compare the JVM against a GraalVM native image built from the same Spring Boot source.

All reading paths 2 entries, 17 min

In reading order

007

Java, Python, Node and Rust on the same REST service: 7 MB to 191 MB at idle

Problem. Moving a service to another language was expensive because of the integration work. The language itself was easy to learn. You had to choose a framework, an ORM, migrations and metrics, make them work together and connect them to the production tooling. AI coding tools now do much of that work, so the runtime choice is worth measuring again.

Fix. Run the four services on one cluster and compare their memory in Grafana.

008

Native image vs JVM on Spring Boot 4.1: 4.3x less memory, 18x faster startup

Problem. Most native image vs JVM numbers come from benchmarks of other applications. Here one service is built both ways from the same source code and measured on the same dashboard, so the numbers describe this code on this cluster.

Fix. Build the native image when memory and startup time matter, and keep the JVM jar otherwise.