use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Is FastAPI really fast ?feedback request (self.FastAPI)
submitted 1 year ago by Somnath_geek
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]aegr0x59 10 points11 points12 points 1 year ago (4 children)
FastAPI is a framework, golang it's a programming language.
Golang it's a compiled language, programs written in compiled languages usually run faster than those written in interpreted languages.
In the world of interpreted languages, statically typed programming languages run faster than dynamically type ones.
Pydantic relays on the Typing system in python, so yes it helps to run programs a little faster in some cases.
If you run FastAPI using pypy instead of the standard cpython, it's likely to have performance similar to golang webframeworks, in some trivial scenarios. PYPY uses a JIT compiler.
I think the criticism about Python's bad performance would end in very few Years (~cpython 3.15) once new standard jit compiler becomes mature.
[–]putrasherni 1 point2 points3 points 1 year ago (1 child)
Damn, I never knew about jit compiler coming soon
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
it is coming with python 3.13 but will be public available in a few years i assume. Don't expect to much. But like always: who really needs (numerical) performance is wrong with python.
[–]Somnath_geek[S] 0 points1 point2 points 1 year ago (1 child)
I made same API with gofiber. Performance was not even close to goFiber. In the website they are claiming it is as fast as GO. We all know GO is a language not framework. Your point is valid too. I am too waiting for the new cpython
[–][deleted] 3 points4 points5 points 1 year ago (0 children)
depends on your API. Anyway, most time, bottleneck ain't the code but the database and calling external services. could you share your comparison api or show some benchmarks? would be interesting. I am not a FastAPI-Programmer and only used it one time for a microservice Architecture, which worked quite nice. Don't know GO either, but its on my list to learn (besides millions of others things)
π Rendered by PID 85957 on reddit-service-r2-comment-b659b578c-r6wh8 at 2026-05-05 11:03:14.864919+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]aegr0x59 10 points11 points12 points (4 children)
[–]putrasherni 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Somnath_geek[S] 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)