Just a boilerplate for starting backends on different languages for comparison.
-
Clone this repository, go to
backend-comparison
directory and run the scriptStart all backend services (in docker)
bash start_backends.sh --nodejs true --go true --rust true
-
Now you can access apis:
Name Root url Node.js (Fastify) http://localhost:3028 Go (Gin) http://localhost:3029 Rust (Actix Web) http://localhost:3030 Common routes for all apis:
Route description /ping Returns string "pong" /users Returns list of users with posts /fib/:number Calculates fibonacci for a given number
wrk -t4 -c100 -d10s http://localhost:3028/users
wrk -t4 -c100 -d10s http://localhost:3029/users
wrk -t4 -c100 -d10s http://localhost:3030/users