r/FastAPI • u/[deleted] • Aug 15 '22
Question raw Flask vs FastAPI ?

According to tech empower benchmark, if I use Flask without ORM library, it performs faster than FastAPI. Raw Flask could handle 13,574 requests per second. FastAPI could handle 12,406 req /s. Flask with an ORM library could handle only 552 req /s.
Do you guys think this is true? is Flask still faster than FastAPI? then develoeprs can stick with Flask with raw SQL queries.
Here's a link to flask-raw github repo:
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Python/flask/app_raw.py
4
Upvotes
1
u/extreme4all Oct 02 '22
We used to have issues with flask that the queue would fill up if we had a few heavy db requests, we don't have this with fast api. Also you might want to read thz fast api doc on performance