Tiny experiment to compare two web frameworks: Python FastAPI and Rust actix-web.
docker compose up --build -dSend request to Rust actix-web server
curl http://localhost:8080/rust-adam"Hello rust-adam!
Send request to python FastAPI server:
curl http://localhost:8081/python-adam"Hello python-adam!
Send request to Rust rwf server:
curl http://localhost:8082/<h1>Hey Rwf!</h1>
Send request to Rust rwf server:
curl http://localhost:8083/Hello, Robyn world!
docker stats --no-stream --format "table {{.Name}}\t{{.MemUsage}}"NAME MEM USAGE / LIMIT
python-v-rust-rust-rwf-1 4.121MiB / 15.54GiB
python-v-rust-python-robyn-1 50.09MiB / 15.54GiB
python-v-rust-python-fastapi-1 46.66MiB / 15.54GiB
python-v-rust-rust-actix-web-1 1.078MiB / 15.54GiB