3 ms·
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 as
by jeremycarter 6y ago
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/ https://www.techempower.com/benchmarks/
- _jjkk 6y agoIf 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.
- jeremycarter 6y agoIf you filter the list to just Python you can see Starlette and FastAPI are the fastest.
- hsaliak 6y agoThis 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.
- jeremycarter 6y agoOne 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.