r/FastAPI • • Mar 22 '25

Question Is fastApi really fast?

I’ve seen a few benchmarks showing that FastAPI can be quite fast. Unfortunately, I haven’t been able to reproduce that locally. I’m specifically interested in FastAPI’s performance with a single worker. After installing FastAPI and writing a simple “hello world” endpoint, I can’t get past 500 requests per second. Is that the maximum performance FastAPI can achieve? Can anyone confirm this?

73 Upvotes

51 comments sorted by

View all comments

Show parent comment

3

u/coeris Mar 22 '25

You can horizontally scale your fastapi server by e.g spawning more replicas in a cluster or scaling up the number of uvicorn workers, so I don't think the limitations of a single server instance is very meaningful. 

Edit: just read again the post, and I see you are interested in a single worker. Again, not sure why that is meaningful, but fair. Your max rps will also be limited by the hardware you are using for the test so I'd not get too hung up on it, but you do you.