from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} # uvicorn main:app --host 0.0.0.0 --workers 2 --no-access-log """ /\ |‾‾| /‾‾/ /‾/ /\ / \ | |_/ / / / / \/ \ | | / ‾‾\ / \ | |‾\ \ | (_) | / __________ \ |__| \__\ \___/ .io execution: local--------------------------------------------------] servertor output: - script: - duration: 10s, iterations: - vus: 30, max: 30 time="2020-03-17T18:41:14Z" level=info msg=Running i=4033 t=971.8764msstarting time="2020-03-17T18:41:15Z" level=info msg=Running i=8211 t=1.9674108s time="2020-03-17T18:41:16Z" level=info msg=Running i=13212 t=2.961034s time="2020-03-17T18:41:17Z" level=info msg=Running i=17749 t=3.9749847s time="2020-03-17T18:41:18Z" level=info msg=Running i=22653 t=4.9712233s time="2020-03-17T18:41:19Z" level=info msg=Running i=27476 t=5.9624155s time="2020-03-17T18:41:20Z" level=info msg=Running i=32148 t=6.9568929s time="2020-03-17T18:41:21Z" level=info msg=Running i=36873 t=7.9722637s time="2020-03-17T18:41:22Z" level=info msg=Running i=41220 t=8.9699711s time="2020-03-17T18:41:23Z" level=info msg=Running i=46279 t=9.9712915s time="2020-03-17T18:41:23Z" level=info msg="Test finished" i=46394 t=10.0021554s data_received..............: 7.0 MB 696 kB/s data_sent..................: 3.9 MB 390 kB/s http_req_blocked...........: avg=54.23µs min=21.7µs med=34.2µs max=25.56ms p(90)=70.6µs p(95)=123.9µs http_req_connecting........: avg=2.83µs min=0s med=0s max=6.28ms p(90)=0s p(95)=0s http_req_duration..........: avg=4.11ms min=588µs med=3.84ms max=42.21ms p(90)=6.44ms p(95)=7.52ms http_req_receiving.........: avg=129.01µs min=40.2µs med=79.5µs max=24.99ms p(90)=196µs p(95)=276µs http_req_sending...........: avg=64.83µs min=17.2µs med=35.8µs max=18.73ms p(90)=95.1µs p(95)=144.8µs http_req_tls_handshaking...: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s http_req_waiting...........: avg=3.92ms min=474.5µs med=3.67ms max=40.98ms p(90)=6.21ms p(95)=7.24ms http_reqs..................: 46401 4639.100088/s iteration_duration.........: avg=4.45ms min=862.2µs med=4.14ms max=54.83ms p(90)=6.84ms p(95)=7.98ms iterations.................: 46401 4639.100088/s vus........................: 30 min=30 max=30 vus_max....................: 30 min=30 max=30 """