Fastapi: FastAPI Performance

Created on 18 Nov 2020  路  12Comments  路  Source: tiangolo/fastapi

The README.md file for FastAPI being on par seems misleading I think they could say that it's one of the fastest python frameworks to be more precise since I'm now going to edit this what I'm saying is FastAPI can't handle that many requests per second.

question

All 12 comments

Is there any way to speed up the request per second?

how do you run FastApi with uvicorn or gunicorn?
what is your gunicorn config?
requests per second depend on many parameters.

I'm just doing this "uvicorn main:app --reload"

I used autocannon for the test "autocannon -c 100 -d 40 -p 10 localhost:8000", 2 times the first one was for a warm up. If I'm doing this wrong then my apologies I'm new to using a framework with python.

Okay

Oh it's because I'm using windows

What made you think the problem is related to your OS?

Google

@ycd Do you have any test which could show me the req per sec you got?

There are a lot of tools out there, ali, hey, and well-rounded benchmarks like TechEmpowers.

Okay thanks.

Was this page helpful?
0 / 5 - 0 ratings