Go (Golang) vs Node.js: Performance (Latency - Throughput - Saturation - Availability)

  Рет қаралды 30,594

Anton Putra

Anton Putra

Күн бұрын

Пікірлер
@AntonPutra
@AntonPutra 2 ай бұрын
🔴 To support my channel, I'd like to offer Mentorship/On-the-Job Support/Consulting (me@antonputra.com)
@germandavid2520
@germandavid2520 2 ай бұрын
It's really cool that you make new videos with the corrections, we can all check those PRs here and learn something new.
@AntonPutra
@AntonPutra 2 ай бұрын
thanks, the more mistakes i make, the more content i generate 😂
@JT-mr3db
@JT-mr3db 2 ай бұрын
Now we can finally justify moving all of our tech stacks over to Go and blow our 2 users minds.
@a0flj0
@a0flj0 2 ай бұрын
He also did a test Rust vs Go, also in two versions, an initial one and one after receiving feedback. Rust is way better than Go.
@LiveType
@LiveType 2 ай бұрын
python -> go pipeline is 100% worth it. 10x improvements on the same hardware are pretty typical with a moderately complex application.
@commonfolk663
@commonfolk663 2 ай бұрын
@@a0flj0 Rust is on whole other level. IDK why would anyone redo anything in Golang if he has resources. Go is a good language to bootstrap things, but it falls off quickly in almost any scenario. Even if you use much slower languages than Rust or Go, if they're popular they still usually have much better approaches typing and error handling in requests. And then you can just keep adding instances endlessly. Poorly optimized, awfully written NodeJS without typescript would have 0 advantages over simple server in Go, but you can still just throw 16GB RAM and 8 server instances at it and it would work like charm.
@AntonPutra
@AntonPutra 2 ай бұрын
😂
@Mylordkaz
@Mylordkaz 2 ай бұрын
@@commonfolk663 most projects don't need Rust or even Go and can do very well with Node. But at the end it's just a case by case and resources availability question.
@andreujuanc
@andreujuanc 2 ай бұрын
Very impressive that NodeJS can handle so many req/s considering it's running on a VM (v8) and Go compiles to native code.
@OldKing11100
@OldKing11100 2 ай бұрын
I do like these tests since it's mirroring what I'm seeing from techempower benchmarks between nodejs and go-std where Plaintext only really tests server handling. JSON 1-query 20-query Fortunes Updates Plaintext 561,077 299,223 18,137 256,269 7,765 738,221 //Go-std 320,168 95,776 6,860 70,833 3,048 454,082 //NodeJS
@_garicas
@_garicas 2 ай бұрын
yeah, V8 has JIT, NodeJS has C++ addons, and so on
@kamurashev
@kamurashev 2 ай бұрын
Fully agree, being mostly java dev I'm impressed by js (node) performance. And I know you wouldn't hear it often from Java devs - JS is cool language!
@_garicas
@_garicas 2 ай бұрын
@@kamurashev do you think the language itself is cool (syntax, semantics, etc) or the runtime? Or both?
@kamurashev
@kamurashev 2 ай бұрын
@@_garicas I think both. Sometimes I miss strong typing but honestly, in case of JS I totally get it. It can be an issue for big projects but it also in case of JS can be a benefit for the small services. I also like package management. And I like the simplicity of working with objects, where I can do whatever I like manipulations.
@manwithnoname4139
@manwithnoname4139 2 ай бұрын
Node vs Bun vs Deno please
@AntonPutra
@AntonPutra 2 ай бұрын
next 💯
@s1v7
@s1v7 2 ай бұрын
let me guess - bun will be the fastest, node - the slowest
@manwithnoname4139
@manwithnoname4139 2 ай бұрын
@@s1v7 It will come out like that, but it would be useful to see and compare the cpu and memory consumptions. Also, Deno and Bun still cannot use all the nodejs libraries. So it is still problematic to switch from nodejs to bun or deno.
@snatvb
@snatvb 2 ай бұрын
​@@AntonPutra really interesting deno had major update (v2), interesting how much better it's gotten
@hermes6910
@hermes6910 2 ай бұрын
@@snatvb Still in RC and not released ? But yeah, definetly want to see Deno V2
@bartek5598
@bartek5598 2 ай бұрын
Please make PHP8.3 (FPM and Swoole) vs NodeJS comparison. This is what most of web uses now.
@AntonPutra
@AntonPutra 2 ай бұрын
soon
@roger-sei
@roger-sei 2 ай бұрын
I love Swoole. Traditionally, PHP is very slow. Would be nice to see Swoole running against Node or GO
@hardtech1010
@hardtech1010 2 ай бұрын
Thanks Anton. I wanted to improve the node code after I saw the previous terrible performance. I have used node for years now and I knew it could do better than what I saw initially. I will never argue node is better than go but I will say it is a very good runtime for most projects if you know how to use it.
@AntonPutra
@AntonPutra 2 ай бұрын
true
@ireydiak
@ireydiak Ай бұрын
At my previous company we were hosting multiple web applications including one that had around 42 million unique visitors every month. Everything was hosted on NodeJS servers within a Kubernetes cluster in AWS. It's very impressive what you can achieve with this runtime and K8s.
@Perspectologist
@Perspectologist 2 ай бұрын
I really appreciate this series of videos comparing frameworks, languages, and configurations. It is interesting to see a semi-naive implementation vs an optimized implementation comparison. It is helpful to understand how much configuration can matter. Thanks for making and sharing this content with us.
@AntonPutra
@AntonPutra 2 ай бұрын
thanks!
@roger-sei
@roger-sei Ай бұрын
Amazing work, brother. Thanks for the benchmark 🤩
@AntonPutra
@AntonPutra Ай бұрын
thank you!
@hazimdikenli
@hazimdikenli 2 ай бұрын
Thank you:) I was going to ask for Deno and Bun versions, looks like I am not the only one.
@AntonPutra
@AntonPutra 2 ай бұрын
yes it is next
@ijazkhan3335
@ijazkhan3335 2 ай бұрын
Much better benchmark. Thing I like about Go is that you are mostly sure about your code scaling well the moment you write it.
@AntonPutra
@AntonPutra 2 ай бұрын
true, it's easy to scale
@GabrielPozo
@GabrielPozo 2 ай бұрын
Great about benchmark video like always!!! But this is even better with the explanation about CPU use in Kubernetes.
@AntonPutra
@AntonPutra 2 ай бұрын
thanks i tried :)
@luca4479
@luca4479 2 ай бұрын
Thanks! I knew from personal experience NodeJS is crazy fast for a scripting language. I’m seriously interested in seeing a runtime battle. Bun, Node, Deno, and there are some serverless runtimes too, but I guess the big three are the interesting ones.
@capfoo
@capfoo 2 ай бұрын
+Workerd probably easy to containerize.
@AntonPutra
@AntonPutra 2 ай бұрын
Deno vs. Node.js vs Bun is next
@TheRanguna
@TheRanguna 2 ай бұрын
Much better! Thank you very much for adjusting your setup
@AntonPutra
@AntonPutra 2 ай бұрын
always trying to fix my mistakes
@perc-ai
@perc-ai 2 ай бұрын
Hey Anton I was the one that suggested to use the cluster module in the last video. Thanks for making another Node vs Golang and briefly discussing the cluster module and going in depth in kubernetes. I know you will be a very big youtuber because you listen to us in the comments thanks again man!
@AntonPutra
@AntonPutra 2 ай бұрын
thank you!
@Leo-qr1rq
@Leo-qr1rq 2 ай бұрын
Let’s do elixir vs golang
@AntonPutra
@AntonPutra 2 ай бұрын
okay, it's already very close to the top of my list 😊
@chengjunxie5192
@chengjunxie5192 2 ай бұрын
@@AntonPutravote for elixir as well. Thank you
@moochalshrek6519
@moochalshrek6519 2 ай бұрын
As someone who works in a small company where we deploy Python flask as a backend for internal development, I would love to see a Flask vs FastAPI vs GO (or Node), just to see what are the performance differneces at things beyond the scale that I'll probably ever see
@thelearningmachine_
@thelearningmachine_ 2 ай бұрын
in a battle of snails, flask is synchronous. That means it accepts/process 1 request per time, this is a HUGE bottleneck while FastAPI is asynchronous by nature. You're have to deploy multiple webworkers to make flask "useful", but that cost compute resources. FastAPI = async def baby, concurrency to the roof. But in the end, python is single-threaded (GIL), so don't expect anything close to a full compiled /JIT language. Python is alone on his own league, of poor performance and speed. I suggest you to start changing from Flask to FastAPI, it needs very little change in the code, in 5 minutes you change everything just routes and request objects, and you'll gain a HUGE concurrency performance.
@moochalshrek6519
@moochalshrek6519 2 ай бұрын
@@thelearningmachine_ Thats the fun part to watch the battle of the snails and see the actual bad performance. And I have been trying to migrate from Flask to Fast. But I'm currently the only dev in my company and they want more software/features churned out instead of improving our bottlenecks. I'd preferably rebuild everything in NodeJS or .NET
@moochalshrek6519
@moochalshrek6519 2 ай бұрын
@@thelearningmachine_ Thats the fun part to watch the battle of the snails and see the actual bad performance. And I have been trying to migrate from Flask to Fast. But I'm currently the only dev in my company and they want more software/features churned out instead of improving our bottlenecks or hiring more devs. I'd preferably rebuild everything in NodeJS but that's a lot of time I currently do not have.
@artemcodes
@artemcodes 2 ай бұрын
Very nice comparison, especially the part about the concurrency internals of the languages. The animations were fantastic as well! I was wondering, which tools did you use to make them?
@EzequielRegaldo
@EzequielRegaldo 2 ай бұрын
Thank you so much for your videos, i really appreciate your job! If you're using NodeJS i recommend using cluster mode for each 4 cpu cores, simply because libuv default config (i tried modifying this config and performs worse)
@AntonPutra
@AntonPutra 2 ай бұрын
well, it's not the best option to deploy to kubernetes on a standalone VM, for sure
@AlexanderMoon
@AlexanderMoon 2 ай бұрын
Amazing, as usual. Thank you!
@AntonPutra
@AntonPutra 2 ай бұрын
thanks!😊
@danielh6453
@danielh6453 2 ай бұрын
Great series, really enjoy these. One point - In Kubernetes 1000m (1000 millicores) is 1 CPU core, not 1 CPU
@AntonPutra
@AntonPutra 2 ай бұрын
1 CPU = 1000 millicores = 100% of 100ms which is default enforceable interval in cgroups
@danielh6453
@danielh6453 2 ай бұрын
ChatGPT suggests it's actually a percent of 1 vCPU, which is one CPU thread or one core. I will read further. It's a cool demo either way. Got me reading more details than I expected
@danielh6453
@danielh6453 2 ай бұрын
I did some more reading, and the limits are definitely in vCPUs, which are cores. In AWS, they state: "Each vCPU on Graviton-based Amazon EC2 instances is a core of AWS Graviton processor." Therefore, a m7g.large is 2 cores, or 2000 millicores, or 2 vCPUs. Azure is similar. Immensely enjoyed the journey of reading into the details. Thanks for providing such interesting demos like these
@technovikingnik
@technovikingnik 2 ай бұрын
Thank you sir, it was very well explained up to the point.
@AntonPutra
@AntonPutra 2 ай бұрын
thank you!
@e2e23e
@e2e23e 2 ай бұрын
Thanks for doing the part2 ❤
@AntonPutra
@AntonPutra 2 ай бұрын
my pleasure! i'll do more node in the future including comparing cluster mode with horizontal scaling
@Gruak7
@Gruak7 2 ай бұрын
Now that was a fair run. Next I'd like to see the same but using frameworks for both. I'd pick hono for node and gin for go.
@AntonPutra
@AntonPutra 2 ай бұрын
i'll compare the most popular js frameworks and will do a final comparison with go😊
@ggcc3261
@ggcc3261 2 ай бұрын
First! Thanks for making these btw
@AntonPutra
@AntonPutra 2 ай бұрын
my pleasure!
@federico7551
@federico7551 2 ай бұрын
Great video! Can you please do something to improve Java application performance on K8s as well? Thanks!
@AntonPutra
@AntonPutra 2 ай бұрын
yes, i'll come back to Java soon
@siraz6899
@siraz6899 2 ай бұрын
Vote up for this
@thomasp3428
@thomasp3428 2 ай бұрын
Congratulations to Golang for its fair participation in NodeJS Paralympics.
@DrewryPope
@DrewryPope 2 ай бұрын
Lol
@AntonPutra
@AntonPutra 2 ай бұрын
😂
@MarcusTorres-zv5cv
@MarcusTorres-zv5cv 2 ай бұрын
Another one who sits in front of a computer to write nonsense, 90% of applications don't need this 'high concurrency' that Go claims to have. Nowadays, there are scalable structures like AWS, edge computing, etc. In the tech world, everything changes; don't expect Node.js to remain so inferior to Go in the coming years, or don't be surprised if the tables turn. Which, in reality, wouldn’t even be that significant because a development structure doesn’t live off benchmarks alone.
@toTheMuh
@toTheMuh 2 ай бұрын
@@MarcusTorres-zv5cv Yeah, there are scalable structures. AWS billing goes brrrr...
@thomasp3428
@thomasp3428 2 ай бұрын
@@MarcusTorres-zv5cv ok junior
@EdwinMartin
@EdwinMartin 2 ай бұрын
The differences are far less than I expected. JavaScript is pretty good! What I really like to see is the same benchmark, but using bun (and possibly Deno)
@AntonPutra
@AntonPutra 2 ай бұрын
coming soon
@pawegraczyk6050
@pawegraczyk6050 2 ай бұрын
Way better now...
@AntonPutra
@AntonPutra 2 ай бұрын
yes thanks
@snatvb
@snatvb 2 ай бұрын
this is so useful! thank you!
@AntonPutra
@AntonPutra 2 ай бұрын
my pleasure!
@Requiem100500
@Requiem100500 2 ай бұрын
the difference is not as big as I expected
@123mrfarid
@123mrfarid 2 ай бұрын
True, but in real world, the difference would be much bigger with expanding complexity, libraries, frameworks, scalabilities, etc. I am mainly code in JS now but i know for sure that Go would destroy JS performance in most production cases since i have code in both language in comparable projects. Go also has a very fast framework (fiber) and overall higher quality libraries
@AntonPutra
@AntonPutra 2 ай бұрын
yes, and i haven't started comparing deno or bun with go yet 😊
@mrlectus
@mrlectus 2 ай бұрын
@@AntonPutra yeah do bun next
@whiletrue1-wb6xf
@whiletrue1-wb6xf 2 ай бұрын
Great video! Could you share which monitoring application you're using to collect all those graphs?
@Baboi62182
@Baboi62182 2 ай бұрын
Java vs C# vs Go with all the optimizations. That would be a good comparison. Maybe even default C# vs optimized C# just like this video's Go comparison.
@AntonPutra
@AntonPutra 2 ай бұрын
will do
@farzadmf
@farzadmf 2 ай бұрын
Very nice explanation about requests and limits
@AntonPutra
@AntonPutra 2 ай бұрын
thank you!
@ehfoss
@ehfoss 2 ай бұрын
Anton, why is there CPU throttling when the CPU usage on Go: default and Go are not at the 1 CPU limit? Is the CPU plot not showing iowait or iosteal? Does `cpuset` do anything in a k8s env? When using raw hardware, using cpuset to avoid cross-socket traffic helps performance a great deal. If you're capping at 1cpu, then one may as well pin it to that core so it doesn't have to worry about floating to another core or socket. Thanks for the diligent videos!
@AntonPutra
@AntonPutra 2 ай бұрын
I'll double check
@miralirafiyev4646
@miralirafiyev4646 2 ай бұрын
MongoDB vs Postgres ( or Mysql ) please.
@AntonPutra
@AntonPutra 2 ай бұрын
i think it's much easier to scale mongo horizontally then postgres with read only replicas, but i'll see what i can do
@sam_8a
@sam_8a 2 ай бұрын
Would love a video on how to do such benchmark with those graphs
@AntonPutra
@AntonPutra 2 ай бұрын
i'll do it in the near future
@capfoo
@capfoo 2 ай бұрын
Nodejs performance actually quite good, nice.
@AntonPutra
@AntonPutra 2 ай бұрын
yes
@rocketbox9
@rocketbox9 2 ай бұрын
I love Anton! Can you also do these same tests using a k8s ARM architecture? please
@AntonPutra
@AntonPutra 2 ай бұрын
i did one in the past with graviton, and i'll definitely refresh it soon
@emersonmicu1683
@emersonmicu1683 2 ай бұрын
Really cool videos, may I know the program you use for video animations?
@AntonPutra
@AntonPutra 2 ай бұрын
thanks! sure adobe suite
@ZodakZach
@ZodakZach 2 ай бұрын
These videos are awesome. Do you get a pretty high AWS bill from running these kinds of tests?
@AntonPutra
@AntonPutra 2 ай бұрын
thanks! I need to set up an infra support fund 😊
@boot-strapper
@boot-strapper 2 ай бұрын
Thanks for the follow up. I think this really shows that JS is pretty good. Considering how easy it is to write and can still compete with something like go or Java is amazing
@AntonPutra
@AntonPutra 2 ай бұрын
yes it pretty good, just be careful how you deploy it
@myanch200
@myanch200 2 ай бұрын
It will be interesting to see Elixir vs go lang
@AntonPutra
@AntonPutra 2 ай бұрын
will do
@myanch200
@myanch200 2 ай бұрын
@@AntonPutra Thank you Anton,amazing videos learning a lot
@Kavantix
@Kavantix 2 ай бұрын
Why did you run 2 replicas with gomaxprocs=1 instead of 1 replica with gomaxprocs=2 and 2000m limit? Your second test clearly shows that this has an impact on the performance of the go app. Also, now that you switched to 2 core machines why not remove the cpu limit entirely? We discussed before about starvation of system resources but with 2000m limit on a 2 core machine the same starvation can happen so there should not be a difference right?
@AntonPutra
@AntonPutra 2 ай бұрын
i get your point. i used gomaxprocs=1 and a 1 CPU limit just to have the same settings as for node.js. regarding the second question, in theory yes, but i haven't tested that scenario yet.
@ivanarsenev4474
@ivanarsenev4474 2 ай бұрын
Could you compare cloudflare workers with hono vs go aws lambda?
@AntonPutra
@AntonPutra 2 ай бұрын
ok, i'll see what i can do
@ivanarsenev4474
@ivanarsenev4474 2 ай бұрын
@@AntonPutra Thank you, your channel one of the best things that I checking in moring in my subscriptions.
@misalambasta
@misalambasta 2 ай бұрын
As compare to last node vs go, in this node performed very close to golang.
@AntonPutra
@AntonPutra 2 ай бұрын
yes due to improvements
@zakimimit
@zakimimit 2 ай бұрын
Thank you for this video and I hope you can do video of optimized Django,with ninja and celery or other optimization. My best regards
@AntonPutra
@AntonPutra 2 ай бұрын
thanks! yes in the future I'll improve it
@alekc7292
@alekc7292 2 ай бұрын
Why don't you add dashboards to the source code? Can you solve it? It might be interesting, maybe for reusing your tests
@AntonPutra
@AntonPutra 2 ай бұрын
i have it here - github.com/antonputra/tutorials/tree/main/lessons/135 i'm planing to create another tutorial on monitoring soon
@belkocik
@belkocik 2 ай бұрын
Are you going to test nodejs with fastify (with pm2 load balancer with max 3 cores config?) vs go?
@AntonPutra
@AntonPutra 2 ай бұрын
well maybe i'll do fastify, next Deno vs. Node.js vs Bun
@belkocik
@belkocik 2 ай бұрын
@@AntonPutraNice! Would love to see how fastify performs with load balancer vs go std.
@r0nni34
@r0nni34 2 ай бұрын
This had me wondering what would be the theoretical max limit a language can handle if given higher specs.
@AntonPutra
@AntonPutra 2 ай бұрын
well it depends how many threads they create and in general adapt to multi core processors but i'm sure there is a limit
@TheCreepyMoto
@TheCreepyMoto 2 ай бұрын
Ever going to see Bun , Deno vs something ?
@AntonPutra
@AntonPutra 2 ай бұрын
yes, it's next for sure: deno vs. node.js vs bun. i just need to fix the mistakes before moving on to the next one
@yannickpeter8607
@yannickpeter8607 2 ай бұрын
What would be the effect if i do not set cpu limits at all?
@AntonPutra
@AntonPutra 2 ай бұрын
You can get unpredictable throttling or performance penalties from neighboring containers that don't have resource limits and consume all available resources. These containers can not only starve other containers running on the same node, but more importantly, they can interfere with system components and make nodes unavailable.
@mehrdad-ai
@mehrdad-ai 2 ай бұрын
Please compare bun vs go va rust
@AntonPutra
@AntonPutra 2 ай бұрын
close :) next Deno vs. Node.js vs Bun
@skuwamy
@skuwamy 2 ай бұрын
wait bun vs go vs rust? huh?
@mehrdad-ai
@mehrdad-ai 2 ай бұрын
@@skuwamy bun is written in rust
@nonono9700
@nonono9700 2 ай бұрын
Never thought it would be this close
@AntonPutra
@AntonPutra 2 ай бұрын
yeap, i'll test more. i want to know how nodejs cluster mode compares with standalone
@mj-lc9db
@mj-lc9db 2 ай бұрын
Insane!
@AntonPutra
@AntonPutra 2 ай бұрын
yeah i know 😊
@bo_leang
@bo_leang 2 ай бұрын
I am interested in your explanation on this video. What animation did you use for your video?
@AntonPutra
@AntonPutra 2 ай бұрын
adobe suite
@Charith_LakshanJ
@Charith_LakshanJ 2 ай бұрын
What is that monitoring setup ?? dashboard looking clean.
@AntonPutra
@AntonPutra 2 ай бұрын
thanks, i use prometheus + grafana, basic staff
@Mylordkaz
@Mylordkaz 2 ай бұрын
thank you, nice video. I would like to benchmark my own projects, do you have a video that explain how to setups basics benchmark ? that would be great thx you
@AntonPutra
@AntonPutra 2 ай бұрын
not yet but i'll create one soon
@wahidfeb
@wahidfeb 2 ай бұрын
can we get laravel benchmark?
@AntonPutra
@AntonPutra 2 ай бұрын
yes a maybe one or more for js and then php
@wahidfeb
@wahidfeb 2 ай бұрын
@@AntonPutra thank you
@MrDejvidkit
@MrDejvidkit 2 ай бұрын
Can you compare the GoLang and Scala web framworks like ZIO Http?
@AntonPutra
@AntonPutra 2 ай бұрын
yes i'll do scala in the future
@j.r.r.tolkien8724
@j.r.r.tolkien8724 2 ай бұрын
Thank you.
@AntonPutra
@AntonPutra 2 ай бұрын
my pleasure, bun is next
@def-any
@def-any 2 ай бұрын
Go vs Bun please!!!
@AntonPutra
@AntonPutra 2 ай бұрын
yes, but deno vs. node.js vs bun is next, then with go
@def-any
@def-any 2 ай бұрын
@@AntonPutra ty!
@vinusuhas4978
@vinusuhas4978 Күн бұрын
Use cluster mode in nodejs using pm2 and compare performance
@pintokatendejonathan1740
@pintokatendejonathan1740 2 ай бұрын
Thank you for your content Can you do the same for Django vs FastApi vs Flask
@AntonPutra
@AntonPutra 2 ай бұрын
yes, i'll cover python frameworks more in near soon
@RogerGailland
@RogerGailland 2 ай бұрын
Can someone explain to me what Anton means when he says Go starts caching requests?!?
@siddharthd6141
@siddharthd6141 2 ай бұрын
please compare CROW (C++) vs Java or GO ??? pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
@AntonPutra
@AntonPutra 2 ай бұрын
will do! but next Deno vs. Node.js vs Bun
@AntonPutra
@AntonPutra 2 ай бұрын
👋What should I test next??? 👉 Previous Node.js vs Go Benchmark: kzbin.info/www/bejne/kKTPk4CmlLlsZs0 👉 [Playlist] New Benchmarks: kzbin.info/aero/PLiMWaCMwGJXmcDLvMQeORJ-j_jayKaLVn&si=p-UOaVM_6_SFx52H
@shashix
@shashix 2 ай бұрын
please do, node vs php vs python since they kind of serve similar purpose
@Timo4eus
@Timo4eus 2 ай бұрын
c# vs java
@Tom-mx1ec
@Tom-mx1ec 2 ай бұрын
Test FastApi, it would be very interesting to see ;)
@Justsomeguy492
@Justsomeguy492 2 ай бұрын
i would like to see more spring boot
@belkocik
@belkocik 2 ай бұрын
@@AntonPutra fastify with pm2 (load balancer with 3 cores) vs go std.
@mehedirifat9072
@mehedirifat9072 2 ай бұрын
Please do a video on SurrealDB vs PostgreSQL
@AntonPutra
@AntonPutra 2 ай бұрын
ok noted
@ivan.jeremic
@ivan.jeremic 2 ай бұрын
I'm no benchmark pro but for it to be fair shouldn't you enable Worker Threads in Node?
@AntonPutra
@AntonPutra 2 ай бұрын
if you want to deploy it on standalone server or VM you would create as many workers as you have cores but in K8s just scale horizontaly
@RavenXplod
@RavenXplod 2 ай бұрын
Bun(Hono) vs Go...... Please
@roccociccone597
@roccociccone597 2 ай бұрын
Go is faster. That's about it
@AntonPutra
@AntonPutra 2 ай бұрын
deno vs. node.js vs bun is next, then i'll compare it with go
@RavenXplod
@RavenXplod 2 ай бұрын
@@roccociccone597 its not that its faster......the question is how faster....if the difference is small then there is no need to learn Go or new technology and stick to JS and optimise in other parts of the application
@javohirmirzo
@javohirmirzo 2 ай бұрын
great vid! how you pronounce availability is funny tho lol
@AntonPutra
@AntonPutra 2 ай бұрын
thanks :)
@forKotlinsky
@forKotlinsky 2 ай бұрын
hi. what about python and php?
@AntonPutra
@AntonPutra 2 ай бұрын
will do soon
@katungiyassin9947
@katungiyassin9947 2 ай бұрын
Hope you do Erlang vs Zig vs Rust
@AntonPutra
@AntonPutra 2 ай бұрын
ok noted!
@Maric18
@Maric18 2 ай бұрын
the explanation of milicores kind of ... looped? it felt like it was explaining the same concept 3 different ways
@AntonPutra
@AntonPutra 2 ай бұрын
well, maybe i tried to give as many examples as possible
@Maric18
@Maric18 2 ай бұрын
@@AntonPutra true :D and you should never listen to a single youtube commenter :D but just in case you get that feedback from multiple sources, that might be something to improve. This far, its just "at least one person thinks this could have more concise" :D
@gneryze
@gneryze 2 ай бұрын
i try to replicate your grafana histogram but i failed, do you mind to share the json of it?
@AntonPutra
@AntonPutra 2 ай бұрын
sure - github.com/antonputra/tutorials/tree/main/lessons/135
@70sHindiSongs
@70sHindiSongs 2 ай бұрын
Can you do bun vs go please ?
@AntonPutra
@AntonPutra 22 күн бұрын
🍿 Benchmarks: kzbin.info/aero/PLiMWaCMwGJXmcDLvMQeORJ-j_jayKaLVn&si=p-UOaVM_6_SFx52H
@AlexKubrinsky
@AlexKubrinsky 2 ай бұрын
Where I can find a client code/config? Thanks!!
@AntonPutra
@AntonPutra 2 ай бұрын
i need to refactor it and i'll make it public
@elvispalace
@elvispalace 2 ай бұрын
compare two technologies is really hard because you need to understand deeply how they work. you did better now going more deeper how nodejs works and it's fair to say that go has a wonderful resources management
@skuwamy
@skuwamy 2 ай бұрын
bro is javascript one of the easiest language to learn lol.
@conundrum2u
@conundrum2u 2 ай бұрын
he's not talking about the language, he's referring to the underlying runtime and architectural considerations ​@@skuwamy
@elvispalace
@elvispalace 2 ай бұрын
​@@skuwamy you just need to learn the sintaxe to create scalable application, understood
@EdwinMartin
@EdwinMartin 2 ай бұрын
@@elvispalaceit’s not about syntax
@habibosaye
@habibosaye 2 ай бұрын
@@EdwinMartin lol, I think he is being sarcastic 😅 Wait…?
@geraldofebrian7119
@geraldofebrian7119 2 ай бұрын
Php vs php concurrent vs go please
@AntonPutra
@AntonPutra 2 ай бұрын
soon
@ghostvar
@ghostvar 2 ай бұрын
no one mentioned ruby or ruby on rails
@AntonPutra
@AntonPutra 2 ай бұрын
😊
@denetralize
@denetralize 2 күн бұрын
pin each nodejs instance to a cpu core to improve cpu throttling
@AntonPutra
@AntonPutra 2 күн бұрын
well it's not a typical way to deploy apps so i would avoid special cases
@THE_NE0
@THE_NE0 2 ай бұрын
Still waiting for the .NET part 2 :(
@AntonPutra
@AntonPutra 2 ай бұрын
I'll definitely come back to it and improve in near future
@errores-me6yu
@errores-me6yu 2 ай бұрын
я понимаю что это очень специфично, но если есть возможность, можешь, пожалуйста, протестировать php swoole, это расширение, которое меняет работу php
@errores-me6yu
@errores-me6yu 2 ай бұрын
по идее можно laravel octane + swoole
@AntonPutra
@AntonPutra 2 ай бұрын
da obyazatelno sdelay swoole skoro
@guoard
@guoard 2 ай бұрын
Perfect..
@AntonPutra
@AntonPutra 2 ай бұрын
thanks!
@polrk
@polrk 2 ай бұрын
Which nodejs version do u use?
@AntonPutra
@AntonPutra 2 ай бұрын
just updated the video description - node.js (22.9) vs go (1.23.1) performance comparison
@rayhu_dev
@rayhu_dev 2 ай бұрын
Nice man, could you please also create .NET vs Java benchmark.
@AntonPutra
@AntonPutra 2 ай бұрын
sure in the future
@rayhu_dev
@rayhu_dev 2 ай бұрын
@@AntonPutra appreciate
@damirca
@damirca 2 ай бұрын
Please do rails vs phoenix
@kamurashev
@kamurashev 2 ай бұрын
So I was right saying it was cause it's single threaded. Ps you tried so hard to make go look good enough compared with js. 🙂 I appreciate what you are doing, it's super cool content! Being a java dev I'd really like to see how best of each language setups compare. I mean like eg combining best go, rust, js, java for instance. One more time - it’s super cool what you’re doing!
@AntonPutra
@AntonPutra 2 ай бұрын
thanks 🙂
@SidharthKaushik
@SidharthKaushik 2 ай бұрын
Please do a node js vs rust
@a0flj0
@a0flj0 2 ай бұрын
He did a comparison of Rust and Go, similar to this one, after he got feedback on an initial version. Rust came out on top of Go both times in absolutely every metric. Not by an astronomic amount, but, IIRC, by somewhat more than Go is better than node in this comparison. Which translates to Rust being better than node by an even larger margin than Go is.
@AntonPutra
@AntonPutra 2 ай бұрын
yeah, in the future, but probably not node. instead, deno or bun vs rust
@MrLOPIU22
@MrLOPIU22 2 ай бұрын
do go fiber vs php swoole
@AntonPutra
@AntonPutra 2 ай бұрын
i'll do php soon
@tinydev2683
@tinydev2683 2 ай бұрын
Gleam vs Rust vs GO pls u should test it 🙏
@AntonPutra
@AntonPutra 2 ай бұрын
noted!
@manoelhc
@manoelhc 2 ай бұрын
deno vs go please
@AntonPutra
@AntonPutra 2 ай бұрын
ok, testing bun right now
@enzodossantos2546
@enzodossantos2546 2 ай бұрын
i would like to see Laravel vs Node vs Golang :)
@AntonPutra
@AntonPutra 2 ай бұрын
i'll do some php soon
@iceben97
@iceben97 2 ай бұрын
Go vs Encore.ts pleaseeeee
@AntonPutra
@AntonPutra 2 ай бұрын
noted!
@rankala
@rankala 2 ай бұрын
elixir would be interesting 🙂
@AntonPutra
@AntonPutra 2 ай бұрын
i'll do it in near future
@roccociccone597
@roccociccone597 2 ай бұрын
the number of triggered JS people here is quite funny. If we constantly say he didn't do it right, I can say use go fiber and literally destroy JS once and for all.
@spicynoodle7419
@spicynoodle7419 2 ай бұрын
Go fiber goes brrrrtt
@roccociccone597
@roccociccone597 2 ай бұрын
@@spicynoodle7419 indeed, though I prefer the libraries built on stdlib as they're more than fast enough and have better compatibility. But if you need raw speed fiber is awesome.
@OldKing11100
@OldKing11100 2 ай бұрын
@@spicynoodle7419 You should see how crazy Fiber-Prefork is in multicore systems.
@ada0015
@ada0015 2 ай бұрын
I only have experience with gin. I know fiber is superior, but is the syntax similar? I want to migrate if it is
@AntonPutra
@AntonPutra 2 ай бұрын
😂
@Александр-т9ф2ф
@Александр-т9ф2ф 2 ай бұрын
Round 3 -> Nodejs(fastify) vs go
@skuwamy
@skuwamy 2 ай бұрын
Yeah lets use Go Fiber so that these javascript devs get triggered again hahha.
@AntonPutra
@AntonPutra 2 ай бұрын
next, i'll do deno vs. node.js vs bun, then take the fastest and compare it with go 😊
@cbk620
@cbk620 2 ай бұрын
Pls C++builder Vs c# and c++builder Vs visuall c++
@kostan3v
@kostan3v 2 ай бұрын
Let's see how Dart (with Shelf) competes
@AntonPutra
@AntonPutra 2 ай бұрын
ok noted
Deno vs. Node.js vs Bun: Performance Comparison
12:28
Anton Putra
Рет қаралды 76 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Golang Error Handling Is Better Than You Think!
18:53
Anthony GG
Рет қаралды 29 М.
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 226 М.
Go vs Rust vs Bun vs Node | Prime Reacts
18:07
ThePrimeTime
Рет қаралды 177 М.
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 28 М.
Kafka vs RabbitMQ Performance
9:21
Anton Putra
Рет қаралды 43 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 177 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 128 М.