uvicorn main:app --port 8000 --no-access-log --workers 1
$ wrk http://127.0.0.1:8000/users_fastapi
Running 10s test @ http://127.0.0.1:8000/users_fastapi
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 568.68ms 68.02ms 637.11ms 95.32%
Req/Sec 12.06 7.11 20.00 36.21%
171 requests in 10.01s, 16.15MB read
Requests/sec: 17.08
Transfer/sec: 1.61MB
$ wrk http://127.0.0.1:8000/users_flask
Running 10s test @ http://127.0.0.1:8000/users_flask
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.24s 157.89ms 1.56s 77.03%
Req/Sec 7.58 5.52 20.00 64.06%
74 requests in 10.01s, 6.99MB read
Requests/sec: 7.39
Transfer/sec: 714.88KB