I built one API in Rust, Go, Node.js and Python. Rust did 116,000 req/s on one core, FastAPI 10,000

levelup.gitconnected.com7 min read

An author benchmarked identical APIs built in Rust using axum, Go with the standard library, Node.js with Fastify and Express, and Python with FastAPI on a single CPU core. Rust achieved the highest throughput at 116,000 requests per second with minimal memory usage, while FastAPI dropped significantly on a JSON response due to serialization overhead unless a response model was declared. Open article →

More on this topic