Benchmark 2025: Java vs C#, Go, Rust, and Python — who is faster?

Online Python Trainer for Beginners

Learn Python easily without overwhelming theory. Solve practical tasks with automatic checking, get hints in Russian, and write code directly in your browser — no installation required.

Start Course

Benchmark 2025: Java vs C#, Go, Rust, and Python — who took the podium?



In early 2025, the developer community once again turned to the eternal question: which programming language delivers maximum performance in real-world tasks? A fresh benchmark conducted by the independent laboratory TechEmpower (Round 24 cycle), along with a series of synthetic tests from The Computer Language Benchmarks Game, placed Java firmly in the top 3. We analyzed the data and prepared key takeaways for you.



Testing Methodology

The tests compared the latest stable versions of the languages: Java 23 (with the new ZGC and Project Loom), C# 13 (.NET 9), Go 1.23, Rust 1.78, and Python 3.13. Three key metrics were measured:

  • Execution time: raw computation speed (Fibonacci numbers, binary trees, JSON processing).
  • Memory consumption: average RAM usage at peak load.
  • Startup time: from launch to readiness to handle the first request (relevant for microservices).


Results: Java on Top

By total score, Java took second place, losing only to Rust, but significantly outperforming C# and Go. Here are the key figures:

  • Computation speed: Java (JIT compilation + GraalVM) processes binary trees 12% faster than C#/.NET and 40% faster than Go. Rust remains out of reach (+8% over Java), but the gap has narrowed compared to 2023.
  • Memory consumption: Java with the new G1 GC and ZGC showed 120 MB usage vs. 95 MB for Rust and 150 MB for C#. Python "consumes" 280 MB under a similar load.
  • Startup time: Here Java made a breakthrough thanks to Project Loom and GraalVM Native Image. A Spring Boot 3.3 application starts in 0.7 seconds (a 4x improvement compared to 2022). This nearly caught up with Go (0.5 s) and surpassed C# (1.2 s).


Why This Matters for Developers?

Java in 2025 is no longer the "heavyweight" of the past decade. The benchmark showed that:

  • For high-load backends, Java remains the best choice thanks to its mature ecosystem and low resource consumption per unit of business logic.
  • Microservices have become "lightweight": startup time has been reduced to the level of Go, making Java competitive in Kubernetes environments.
  • Python loses in speed by a factor of 10-15, but remains the leader in development speed — the choice depends on the team's priorities.


Conclusions

The 2025 benchmark confirms: Java is not only holding its ground but is actively catching up to Rust and Go in scenarios where it was previously considered slow. If you are looking for a balance between performance, reliability, and talent availability — Java remains one of the best options for enterprise development. Stay tuned for updates on PythonLib — we will continue testing new versions of languages and frameworks.

Recommended Libraries