🔴 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Күн бұрын
slowAPI ?
@fir4tozden22 сағат бұрын
no. because of python's inherent slowness. whatever python web framework you use will be slow.
@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Күн бұрын
please stop bully Python community XD
@shafiq_ramliКүн бұрын
I don't have to watch the video then 😂
@uday4717Күн бұрын
It does not bully it' s just comparison it's good for education
@Mr.BinarySniperКүн бұрын
@@uday4717 not for education only. it will bully the python fans who blindly say python, python, python is for everything. LOL
@PragmaticITКүн бұрын
Please stop being bullied 😂😂😂
@Skyre0Күн бұрын
they dont get bullied as much as js
@australianman8566Күн бұрын
the python comparisons are torture at this point but i'm still sticking with python. i'm more productive with it.
@Mr.BinarySniperКүн бұрын
😝😝😝
@rddmzsКүн бұрын
"robyn" please
@milagos09Күн бұрын
and some people saying stop using JS on the server but it's okay to use Python.
@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.
@saadhabashneh558721 сағат бұрын
+1
@123mrfarid20 сағат бұрын
Or use nodejs
@onur75535Күн бұрын
Thanks for these benchmarks. Can you please make one for java spring boot vs nodejs vs bun? Thanks
@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.
@hidayathidayat44697 сағат бұрын
create PR in the repo
@FlavioSantoro9216 сағат бұрын
Thank you for your job! Can you please evaluate the performance of Encore.ts?
@programmingpillars6805Күн бұрын
and this is only node.js, while we can much more performance using deno 2.0 or bun.js !
@brianarnold9149Күн бұрын
Please do Flask vs. FastAPI vs. Django
@bahaazidanКүн бұрын
Everybody saw that coming. Thanks for the tests. Please keep going.
@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.
@wlockuz446722 сағат бұрын
This is very important. I think most new apps don't need to worry about n-thousand-request-per-second optimizations.
@kevin.malone20 сағат бұрын
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Күн бұрын
might as well do python (django) vs ruby on rails
@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.
@TheIncredibleHugo17 сағат бұрын
Yes nowadays you really should use the async python for the fair comparison...
@victorln17 сағат бұрын
@ FastAPI is async and although the async event loop is a performance improvement, more is necessary to squueze the most performance out of python.
@ninjaasmoke5 сағат бұрын
anton!!! great video. ps: i’m still waiting for drogon vs actix!!!
@TSlova6 сағат бұрын
What about Encore.ts? FastAPI is so slow.
@zlackbiro3 сағат бұрын
Encore.js is currently the fastest framework in the world.
@kantyDarius19 сағат бұрын
Conclusion fastAPI is everything but fast
@AliResool-k8zКүн бұрын
Can you give a php api platform vs python fast api
@PragmaticITКүн бұрын
This music is brilliant 3:13 😂😂😂 Anton you are the best!
@rdec5448Күн бұрын
fastapi vs fastify would be a great title
@zlackbiro3 сағат бұрын
Encore.js is the fastest framework right now.
@emmanuelolowu6768Күн бұрын
Do flask vs laravel
@JorikKraaikampКүн бұрын
Why have the requested higher than the limit with cpu usage? It seems like something that will only cause a lot of problems
@romanmed903516 сағат бұрын
end of result by summary of using?
@mikejohneviota929321 сағат бұрын
this man is underrated 🔥
@Alexey-gp7vc18 сағат бұрын
It's all about JIT runtime only vs no jit framework. btw, something wrong with nodejs memory usage graph.
@daymaker_tradingКүн бұрын
Thanks for your videos!
@amaraag943523 сағат бұрын
I am still waiting comparing of rust Axum, rust Loco and bun Hono. Can't wait.
@PiotrWasКүн бұрын
Have you used uvicorn to run fastapi?
@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Күн бұрын
It uses gunicorn with uvicorn workers
@EmilwareusКүн бұрын
Great work!!🎉❤ Please test surrealdb vs PG/Mongo/Neo4j for the different databases paradigms (blob, relational, graph, vector).
@TariqSajid5 сағат бұрын
laravel with octane vs nodejs 🙏
@Ilja9035 сағат бұрын
MariaDB vs MySQL please
@shinebayar22 сағат бұрын
Remember kids, Python is bad for your server, bad for the environment. Get rid of Python.
@ranggatohjayaКүн бұрын
Robyn vs node vs bun vs deno
@owaraigeininКүн бұрын
sigh why people still use python for production
@jitxhereКүн бұрын
Bun js will absolutely demolish this thing
@YvghhnkooКүн бұрын
Fast Api vs django ninja
@niruniruniru2904Күн бұрын
Not so fast huh
@fabrizio.dipietro17 сағат бұрын
Hi, Go vs nodejs, thank.
@AliResool-k8zКүн бұрын
Illogical programming language vs easy to use and featureful programming language. Is what should be the title
@pesetskyps51 минут бұрын
Thanks!
@kasvith22 сағат бұрын
Elixir vs Node
@Malix_LabsКүн бұрын
I had no idea python has that much worse performance
@jm-alan16 сағат бұрын
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
@GreatTaiwan12 сағат бұрын
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-alan11 сағат бұрын
@@GreatTaiwan Who said I'd be building it with Fastify?
@udaym4204Күн бұрын
fastapi vs Django
@generjet529712 сағат бұрын
But I still love Python. I like to use Python with Elixir
@oboynitroКүн бұрын
node js is c++ right, so no issue there 😅😌😌
@7heMechКүн бұрын
So is Python
@oboynitroСағат бұрын
@@7heMech but python is a programming language
@UChmn12 сағат бұрын
Express vs Next Js api
@dingfengwong1769Күн бұрын
Build python with GIL disabled and try using pypy for jit
@Grahamaan27Күн бұрын
you think experimental changes that fastapi doesn't support will help?
@gabrielandre57478 сағат бұрын
.NET vs Drogon (C++)
@a-yon_n2 сағат бұрын
JS (V8) has better GC and JIT
@bijayaprasadkuikel5162Күн бұрын
I am still to complete the video but I predict nodejs wins. 🎉🎉🎉
@alijchКүн бұрын
nest.js vs laravel please
@marcux83Күн бұрын
CPython at least is very very terrible in efficiency. Please dont put music in the background.. urrrghh
@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
@infantfrontender613113 сағат бұрын
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Күн бұрын
In a nutshell node js is better
@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Күн бұрын
It's "good enough" for most people's practical needs, and people like to stick with what they are already familiar with.
@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Күн бұрын
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Күн бұрын
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Күн бұрын
Go echo vs go fiber
@123mrfarid19 сағат бұрын
Up this
@EzequielRegaldo23 сағат бұрын
"Fast"API lol, please. Use JS instead of Python
@xsdash13 сағат бұрын
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.
@EzequielRegaldo13 сағат бұрын
@@xsdash ok so, let's do it ! please push some ideas to repo, we want to see blood
@GreatTaiwan12 сағат бұрын
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