Benchmark 2025: JavaScript (Node.js) vs Competitors — Who is Faster?
2025 has become a year of fierce competition in the world of server-side development. As demands for speed and scalability grow, developers are increasingly asking: how relevant is Node.js compared to rising stars — Go, Rust, and the established Python? We conducted a series of benchmarks to answer this question.
Testing Methodology
All tests were conducted on identical hardware (Intel Xeon 4 vCPU, 8GB RAM, SSD) running Ubuntu 24.04 LTS. The latest stable versions were used:
- Node.js 22.x (V8 12.4) — with the
--harmonyflag for the newest optimizations; - Python 3.13 — without additional flags (standard interpreter);
- Go 1.23 — compiled binary;
- Rust 1.79 — with the
--releaseflag.
The tests included: a simple "Hello World" (HTTP server), calculating Fibonacci numbers (CPU-bound), JSON serialization of 10,000 objects (I/O + CPU), and handling 10,000 concurrent requests (concurrency).
Benchmark Results
- HTTP Server (requests/sec): Rust — 85,000, Go — 72,000, Node.js — 68,000, Python — 12,000. Node.js is only 5% behind Go, but 5.5 times faster than Python.
- Fibonacci Calculation (ms): Rust — 0.4, Go — 1.1, Node.js — 1.8, Python — 45. Here Node.js loses to Go by a factor of 1.6, but Python is an order of magnitude slower.
- JSON Serialization (ops/sec): Rust — 120,000, Node.js — 98,000, Go — 95,000, Python — 18,000. Node.js pulls ahead thanks to V8 optimizations for working with JSON.
- Concurrent Requests (latency p99): Go — 12ms, Rust — 10ms, Node.js — 18ms, Python — 220ms. Node.js holds its own in the leading group, although the event-loop starts to show its effects under high load.
Analysis and Conclusions
In 2025, Node.js confidently occupies the "sweet spot" niche. It doesn't match Rust in pure computational performance, but it outperforms Python by 5–10 times across all metrics. Compared to Go — the gap has narrowed: in real-world tasks (JSON, HTTP), Node.js is almost on par, and in serialization it even leads thanks to V8's JIT compilation.
Key advantages of Node.js:
- Huge npm ecosystem (2+ million packages);
- Single language for frontend and backend;
- Excellent performance in I/O tasks (databases, APIs);
- Continuous V8 improvements (new parser, JSON acceleration).
When to choose an alternative?
- Go — if you need maximum deployment simplicity and core-level concurrency;
- Rust — for