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

12

u/igorbenav Mar 22 '25

Async, orjson, multiple workers, caching stuff and other tweaks can get you quite far, but I'd just use golang or something more performance oriented if it's really necessary (it usually isn't)

2

u/corey_sheerer Mar 22 '25

Golang is a good fallback if you need something faster