r/FastAPI • • 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

12 comments sorted by

View all comments

8

u/[deleted] Aug 15 '22

Go with what you/team knows and are happy with. The speed difference is so negligible that it will have no implication (12406 vs 13574). The real question is how many requests your application will get per second?

5

u/zarlo5899 Aug 15 '22 edited Aug 15 '22

he speed difference is so negligible that it will have no implication

yep you can always just spin up more instance of the program any ways