FastAPI (Python) vs Node.js Performance

  Рет қаралды 8,252

Anton Putra

Anton Putra

Күн бұрын

Пікірлер
@AntonPutra
@AntonPutra Күн бұрын
🔴 To support my channel, I'd like to offer Mentorship/On-the-Job Support/Consulting (me@antonputra.com) 🍿 Benchmarks: kzbin.info/aero/PLiMWaCMwGJXmcDLvMQeORJ-j_jayKaLVn&si=p-UOaVM_6_SFx52H 👋 AWS is expensive - Infra Support Fund: buymeacoffee.com/antonputra
@leuhenry8031
@leuhenry8031 Күн бұрын
slowAPI ?
@fir4tozden
@fir4tozden 22 сағат бұрын
no. because of python's inherent slowness. whatever python web framework you use will be slow.
@MrDocomox
@MrDocomox Күн бұрын
Would be great to see performance analysis for services deployed between different service mesh framework vs plain service to service communication. For example 2 services calling each other in ISTIO or Consul vs two services calling each other directly.
@Neuroszima
@Neuroszima Күн бұрын
please stop bully Python community XD
@shafiq_ramli
@shafiq_ramli Күн бұрын
I don't have to watch the video then 😂
@uday4717
@uday4717 Күн бұрын
It does not bully it' s just comparison it's good for education
@Mr.BinarySniper
@Mr.BinarySniper Күн бұрын
@@uday4717 not for education only. it will bully the python fans who blindly say python, python, python is for everything. LOL
@PragmaticIT
@PragmaticIT Күн бұрын
Please stop being bullied 😂😂😂
@Skyre0
@Skyre0 Күн бұрын
they dont get bullied as much as js
@australianman8566
@australianman8566 Күн бұрын
the python comparisons are torture at this point but i'm still sticking with python. i'm more productive with it.
@Mr.BinarySniper
@Mr.BinarySniper Күн бұрын
😝😝😝
@rddmzs
@rddmzs Күн бұрын
"robyn" please
@milagos09
@milagos09 Күн бұрын
and some people saying stop using JS on the server but it's okay to use Python.
@ramonpereira4460
@ramonpereira4460 Күн бұрын
Thanks a lot, Anton. I find 2.8k req/s a nice benchmark. Most applications will not require much more than this. If dealing with a very needy application, you're better off using something more performant, such as Golang or C#. Btw, I'd love to see a C# vs Golang showdown.
@saadhabashneh5587
@saadhabashneh5587 21 сағат бұрын
+1
@123mrfarid
@123mrfarid 20 сағат бұрын
Or use nodejs
@onur75535
@onur75535 Күн бұрын
Thanks for these benchmarks. Can you please make one for java spring boot vs nodejs vs bun? Thanks
@amine7
@amine7 Күн бұрын
Node's memory usage graph is only showing the heap size, and not the actual RSS. I don't think it's the case with python's.
@hidayathidayat4469
@hidayathidayat4469 7 сағат бұрын
create PR in the repo
@FlavioSantoro92
@FlavioSantoro92 16 сағат бұрын
Thank you for your job! Can you please evaluate the performance of Encore.ts?
@programmingpillars6805
@programmingpillars6805 Күн бұрын
and this is only node.js, while we can much more performance using deno 2.0 or bun.js !
@brianarnold9149
@brianarnold9149 Күн бұрын
Please do Flask vs. FastAPI vs. Django
@bahaazidan
@bahaazidan Күн бұрын
Everybody saw that coming. Thanks for the tests. Please keep going.
@RobsonFeijo-bv8ux
@RobsonFeijo-bv8ux Күн бұрын
While you are deciding which framework, database, architecture, authentication to use, and the time it will take to code, someone with Django, Laravel or Rails, will have your application with thousands of users without bottlenecks generating profit. Profit is better than thousandths of a second of performance.
@wlockuz4467
@wlockuz4467 22 сағат бұрын
This is very important. I think most new apps don't need to worry about n-thousand-request-per-second optimizations.
@kevin.malone
@kevin.malone 20 сағат бұрын
Python allows me to develop with about the same speed as node for anything web related. The performance difference and quality of life features in JS due to being built for the web makes it a no brainer. For anything data related that isn't going to be a service, Python is a clear winner. If I need to process data and turn it from one form into another, there's no language better than Python to make that happen.
@owaraigeinin
@owaraigeinin Күн бұрын
might as well do python (django) vs ruby on rails
@victorln
@victorln Күн бұрын
Would be cool to see you benchmark Python in some different scenarios, maybe using the PyPy runtime as it's faster for example. Also a test with the Python Sanic (async) framework would be cool as they utilise multiple processes giving you multiple workers.
@TheIncredibleHugo
@TheIncredibleHugo 17 сағат бұрын
Yes nowadays you really should use the async python for the fair comparison...
@victorln
@victorln 17 сағат бұрын
@ FastAPI is async and although the async event loop is a performance improvement, more is necessary to squueze the most performance out of python.
@ninjaasmoke
@ninjaasmoke 5 сағат бұрын
anton!!! great video. ps: i’m still waiting for drogon vs actix!!!
@TSlova
@TSlova 6 сағат бұрын
What about Encore.ts? FastAPI is so slow.
@zlackbiro
@zlackbiro 3 сағат бұрын
Encore.js is currently the fastest framework in the world.
@kantyDarius
@kantyDarius 19 сағат бұрын
Conclusion fastAPI is everything but fast
@AliResool-k8z
@AliResool-k8z Күн бұрын
Can you give a php api platform vs python fast api
@PragmaticIT
@PragmaticIT Күн бұрын
This music is brilliant 3:13 😂😂😂 Anton you are the best!
@rdec5448
@rdec5448 Күн бұрын
fastapi vs fastify would be a great title
@zlackbiro
@zlackbiro 3 сағат бұрын
Encore.js is the fastest framework right now.
@emmanuelolowu6768
@emmanuelolowu6768 Күн бұрын
Do flask vs laravel
@JorikKraaikamp
@JorikKraaikamp Күн бұрын
Why have the requested higher than the limit with cpu usage? It seems like something that will only cause a lot of problems
@romanmed9035
@romanmed9035 16 сағат бұрын
end of result by summary of using?
@mikejohneviota9293
@mikejohneviota9293 21 сағат бұрын
this man is underrated 🔥
@Alexey-gp7vc
@Alexey-gp7vc 18 сағат бұрын
It's all about JIT runtime only vs no jit framework. btw, something wrong with nodejs memory usage graph.
@daymaker_trading
@daymaker_trading Күн бұрын
Thanks for your videos!
@amaraag9435
@amaraag9435 23 сағат бұрын
I am still waiting comparing of rust Axum, rust Loco and bun Hono. Can't wait.
@PiotrWas
@PiotrWas Күн бұрын
Have you used uvicorn to run fastapi?
@thelearningmachine_
@thelearningmachine_ Күн бұрын
doesn't matter. Python needs multiprocessing or a load balancer, horizontal scaling. If go for async, single event loop cannot vertical scale due to own python limitations.
@shinuza
@shinuza Күн бұрын
It uses gunicorn with uvicorn workers
@Emilwareus
@Emilwareus Күн бұрын
Great work!!🎉❤ Please test surrealdb vs PG/Mongo/Neo4j for the different databases paradigms (blob, relational, graph, vector).
@TariqSajid
@TariqSajid 5 сағат бұрын
laravel with octane vs nodejs 🙏
@Ilja903
@Ilja903 5 сағат бұрын
MariaDB vs MySQL please
@shinebayar
@shinebayar 22 сағат бұрын
Remember kids, Python is bad for your server, bad for the environment. Get rid of Python.
@ranggatohjaya
@ranggatohjaya Күн бұрын
Robyn vs node vs bun vs deno
@owaraigeinin
@owaraigeinin Күн бұрын
sigh why people still use python for production
@jitxhere
@jitxhere Күн бұрын
Bun js will absolutely demolish this thing
@Yvghhnkoo
@Yvghhnkoo Күн бұрын
Fast Api vs django ninja
@niruniruniru2904
@niruniruniru2904 Күн бұрын
Not so fast huh
@fabrizio.dipietro
@fabrizio.dipietro 17 сағат бұрын
Hi, Go vs nodejs, thank.
@AliResool-k8z
@AliResool-k8z Күн бұрын
Illogical programming language vs easy to use and featureful programming language. Is what should be the title
@pesetskyps
@pesetskyps 51 минут бұрын
Thanks!
@kasvith
@kasvith 22 сағат бұрын
Elixir vs Node
@Malix_Labs
@Malix_Labs Күн бұрын
I had no idea python has that much worse performance
@jm-alan
@jm-alan 16 сағат бұрын
I understand that these are largely contrived, but I'm genuinely going to use this video to demonstrate to my boss why I want to migrate off FastAPI We have a service that receives input from several distributed systems via an async TCP push system (think RabbitMQ) built in Python using FastAPI, and serving a ReactJS dashboard Except, I'm the only person who works on it that's comfortable with Python - basically everyone else is a JS dev who begrudgingly has learned enough Python to make new API routes, poorly I own and maintain 100% of our async messaging systems, when they could be both more accessible to the other devs, and *_faster_* , if they were running on a NodeJS server instead
@GreatTaiwan
@GreatTaiwan 12 сағат бұрын
you have to compare Fastify to FastAPI thou you won't just have API end points in node it will be much more than just that
@jm-alan
@jm-alan 11 сағат бұрын
@@GreatTaiwan Who said I'd be building it with Fastify?
@udaym4204
@udaym4204 Күн бұрын
fastapi vs Django
@generjet5297
@generjet5297 12 сағат бұрын
But I still love Python. I like to use Python with Elixir
@oboynitro
@oboynitro Күн бұрын
node js is c++ right, so no issue there 😅😌😌
@7heMech
@7heMech Күн бұрын
So is Python
@oboynitro
@oboynitro Сағат бұрын
@@7heMech but python is a programming language
@UChmn
@UChmn 12 сағат бұрын
Express vs Next Js api
@dingfengwong1769
@dingfengwong1769 Күн бұрын
Build python with GIL disabled and try using pypy for jit
@Grahamaan27
@Grahamaan27 Күн бұрын
you think experimental changes that fastapi doesn't support will help?
@gabrielandre5747
@gabrielandre5747 8 сағат бұрын
.NET vs Drogon (C++)
@a-yon_n
@a-yon_n 2 сағат бұрын
JS (V8) has better GC and JIT
@bijayaprasadkuikel5162
@bijayaprasadkuikel5162 Күн бұрын
I am still to complete the video but I predict nodejs wins. 🎉🎉🎉
@alijch
@alijch Күн бұрын
nest.js vs laravel please
@marcux83
@marcux83 Күн бұрын
CPython at least is very very terrible in efficiency. Please dont put music in the background.. urrrghh
@svetlinzarev3453
@svetlinzarev3453 Күн бұрын
I cannot understand people who use python for web apis. Given that there is Java, Go or even better - Rust, it makes no sense to use something so slow. It's just pure disrespect towards your users
@infantfrontender6131
@infantfrontender6131 13 сағат бұрын
Rust is a niche language and good devs are expensive. Companies don't want to risk choosing this language as a primary language for their APIs.
@ibrahimshehuibrahim918
@ibrahimshehuibrahim918 Күн бұрын
In a nutshell node js is better
@PraiseYeezus
@PraiseYeezus Күн бұрын
For those who like Python...why? Genuine question, I'm a TS dev but I've worked with Python and PHP and I can't stand Python...type support is good but not as robust as TS, I can't stand environment management (which is somehow even more annoying than TSConfig/bundlers), performance is hit or miss...is it the library support? Not interested in bashing anyone's preferred tech (or even defending my own) so please don't reply with anything abraisive.
@realharo
@realharo Күн бұрын
It's "good enough" for most people's practical needs, and people like to stick with what they are already familiar with.
@ihatesun
@ihatesun Күн бұрын
Its because of the ecosystem. Its focused heavily on data. UV and poetry fix a lot of the issues regarding what you just mentioned. UV being the superior tool. Performance is rarely a problem, as you need to have a very specific use case. And if the use case is not unique there probably is some library written in C or Rust that you can use. A big problem is that people don't give much time into other languages and then judge it. E.g. when people complain at work about types I don't see them use the IDE to setup type hints, type checks and so on...
@BlackistedGod
@BlackistedGod Күн бұрын
as far as Im aware, Python are being taught in almost all uni, ( even CS50 covers Python after C ). So there's a lot of people who can code in it, and there are also a lot of people who only can code in Python. I'd argue there only two kinds people who would still use Python. 1. Someone who can code in more than one language but doesn't care about performance or not aware how slow it is 2. Someone who only knows Python and never coded in other language.
@ninele7
@ninele7 Күн бұрын
To add to other comments. Sometimes it's used, because project has some dependencies on python ecosystem. Python is likely easiest language to use if you need to run ML models as part of your backend.
Күн бұрын
not the best place to comment if you dont want people to reply
@uday4717
@uday4717 Күн бұрын
Go echo vs go fiber
@123mrfarid
@123mrfarid 19 сағат бұрын
Up this
@EzequielRegaldo
@EzequielRegaldo 23 сағат бұрын
"Fast"API lol, please. Use JS instead of Python
@xsdash
@xsdash 13 сағат бұрын
it's funny people saying it js vs python, while It's just c/c++ vs a framework over cpython. FastAPI will be slow because it has additional layer of framework in python, nodejs is not a framework. Would have made much more sense by comparing someting like Uvloop with node. It would still be lesser in speed but definitely not this much.
@EzequielRegaldo
@EzequielRegaldo 13 сағат бұрын
@@xsdash ok so, let's do it ! please push some ideas to repo, we want to see blood
@GreatTaiwan
@GreatTaiwan 12 сағат бұрын
while NodeJS obv will eb faster than python this test got few issues 1. comparing NodeJS not Fastify for ex to FastAPI (that got Pydantic and many things going on for it) it\s not an apple to apple comparison 2. I think this is only the heap memory for JS not actual RSS unlike for py this is so missleading
VM vs Kubernetes: Performance 🚀
6:07
Anton Putra
Рет қаралды 921
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
This new Tailwind feature is scarier than I thought
29:13
Theo - t3․gg
Рет қаралды 57 М.
SQLite vs PostgreSQL Performance
14:01
Anton Putra
Рет қаралды 43 М.
Actix Web vs. Axum: Is One a Clear Winner?
8:59
OptiCode
Рет қаралды 3,1 М.
Node.js Doesn’t Suck Anymore
16:59
Web Dev Simplified
Рет қаралды 132 М.
Linus On LLMs For Coding
17:06
ThePrimeTime
Рет қаралды 306 М.
Python (FastAPI) vs Go (Golang) Performance Benchmark
8:47
Anton Putra
Рет қаралды 29 М.
Nginx vs Traefik Performance (Reverse Proxy)
13:18
Anton Putra
Рет қаралды 29 М.
Why I Use C | Prime Reacts
13:00
ThePrimeTime
Рет қаралды 191 М.
Scaling your Node.js app using the "cluster" module
13:44
Software Developer Diaries
Рет қаралды 51 М.