Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hi, thanks for a great framework!

You mention "High perf" as the first claim. Are there any performance benchmarks in comparison to other frameworks? I only ask because I see FastAPI as #228 on techempower. https://www.techempower.com/benchmarks/



If you actually wanted a fair(er) comparison, you can filter your benchmarks by Python. People choose FastAPI if they want a Python web framework, there is little use in comparing it to Rust and C++ frameworks or whatever...

That said, this list looks pretty bogus anyway, many of the tools listed here are not really frameworks to begin with. uvicorn for example is an ASGI server (you can run a FastAPI application ON uvicorn) so I'm not sure how this benchmark is "comparing" uvicorn and FastAPI.


If you filter the list to just Python you can see Starlette and FastAPI are the fastest.


This list falls away pretty quickly when building a real app. Common actions like calling another API or running a cpu or I/O intensive task for the user can change the performance profile of your app.

Good frameworks have tools for you when such needs arise and keep your app scalable.


One could write an app using the #1 on the TechEmpower list and end up with an unmaintainable mess. Maybe there should be a 'real app' benchmark that various languages/stacks implement to compare 'real world' scenerios.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: