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

  Рет қаралды 28,757

Anton Putra

Anton Putra

Күн бұрын

Пікірлер
@AntonPutra
@AntonPutra Ай бұрын
► What should I test next? ► AWS is expensive - Infra Support Fund: buymeacoffee.com/antonputra ► Benchmarks: kzbin.info/aero/PLiMWaCMwGJXmcDLvMQeORJ-j_jayKaLVn&si=p-UOaVM_6_SFx52H
@germandavid2520
@germandavid2520 Ай бұрын
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 Ай бұрын
thanks, the more mistakes i make, the more content i generate 😂
@andreujuanc
@andreujuanc Ай бұрын
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 Ай бұрын
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 Ай бұрын
yeah, V8 has JIT, NodeJS has C++ addons, and so on
@kamurashev
@kamurashev Ай бұрын
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 Ай бұрын
@@kamurashev do you think the language itself is cool (syntax, semantics, etc) or the runtime? Or both?
@kamurashev
@kamurashev Ай бұрын
@@_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.
@JT-mr3db
@JT-mr3db Ай бұрын
Now we can finally justify moving all of our tech stacks over to Go and blow our 2 users minds.
@a0flj0
@a0flj0 Ай бұрын
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 Ай бұрын
python -> go pipeline is 100% worth it. 10x improvements on the same hardware are pretty typical with a moderately complex application.
@commonfolk663
@commonfolk663 Ай бұрын
@@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 Ай бұрын
😂
@Mylordkaz
@Mylordkaz Ай бұрын
@@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.
@manwithnoname4139
@manwithnoname4139 Ай бұрын
Node vs Bun vs Deno please
@AntonPutra
@AntonPutra Ай бұрын
next 💯
@s1v7
@s1v7 Ай бұрын
let me guess - bun will be the fastest, node - the slowest
@manwithnoname4139
@manwithnoname4139 Ай бұрын
@@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 Ай бұрын
​@@AntonPutra really interesting deno had major update (v2), interesting how much better it's gotten
@hermes6910
@hermes6910 Ай бұрын
@@snatvb Still in RC and not released ? But yeah, definetly want to see Deno V2
@bartek5598
@bartek5598 Ай бұрын
Please make PHP8.3 (FPM and Swoole) vs NodeJS comparison. This is what most of web uses now.
@AntonPutra
@AntonPutra Ай бұрын
soon
@roger-sei
@roger-sei Ай бұрын
I love Swoole. Traditionally, PHP is very slow. Would be nice to see Swoole running against Node or GO
@hardtech1010
@hardtech1010 Ай бұрын
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 Ай бұрын
true
@ireydiak
@ireydiak 9 күн бұрын
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 Ай бұрын
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 Ай бұрын
thanks!
@hazimdikenli
@hazimdikenli Ай бұрын
Thank you:) I was going to ask for Deno and Bun versions, looks like I am not the only one.
@AntonPutra
@AntonPutra Ай бұрын
yes it is next
@roger-sei
@roger-sei Ай бұрын
Amazing work, brother. Thanks for the benchmark 🤩
@AntonPutra
@AntonPutra 28 күн бұрын
thank you!
@ijazkhan3335
@ijazkhan3335 Ай бұрын
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 Ай бұрын
true, it's easy to scale
@GabrielPozo
@GabrielPozo Ай бұрын
Great about benchmark video like always!!! But this is even better with the explanation about CPU use in Kubernetes.
@AntonPutra
@AntonPutra Ай бұрын
thanks i tried :)
@Leo-qr1rq
@Leo-qr1rq Ай бұрын
Let’s do elixir vs golang
@AntonPutra
@AntonPutra Ай бұрын
okay, it's already very close to the top of my list 😊
@chengjunxie5192
@chengjunxie5192 Ай бұрын
@@AntonPutravote for elixir as well. Thank you
@danielh6453
@danielh6453 Ай бұрын
Great series, really enjoy these. One point - In Kubernetes 1000m (1000 millicores) is 1 CPU core, not 1 CPU
@AntonPutra
@AntonPutra Ай бұрын
1 CPU = 1000 millicores = 100% of 100ms which is default enforceable interval in cgroups
@danielh6453
@danielh6453 Ай бұрын
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 Ай бұрын
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
@EzequielRegaldo
@EzequielRegaldo Ай бұрын
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 Ай бұрын
well, it's not the best option to deploy to kubernetes on a standalone VM, for sure
@Gruak7
@Gruak7 Ай бұрын
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 Ай бұрын
i'll compare the most popular js frameworks and will do a final comparison with go😊
@TheRanguna
@TheRanguna Ай бұрын
Much better! Thank you very much for adjusting your setup
@AntonPutra
@AntonPutra Ай бұрын
always trying to fix my mistakes
@perc-ai
@perc-ai Ай бұрын
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 Ай бұрын
thank you!
@luca4479
@luca4479 Ай бұрын
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 Ай бұрын
+Workerd probably easy to containerize.
@AntonPutra
@AntonPutra Ай бұрын
Deno vs. Node.js vs Bun is next
@moochalshrek6519
@moochalshrek6519 Ай бұрын
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_ Ай бұрын
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 Ай бұрын
@@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 Ай бұрын
@@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 Ай бұрын
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?
@Requiem100500
@Requiem100500 Ай бұрын
the difference is not as big as I expected
@123mrfarid
@123mrfarid Ай бұрын
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 Ай бұрын
yes, and i haven't started comparing deno or bun with go yet 😊
@mrlectus
@mrlectus Ай бұрын
@@AntonPutra yeah do bun next
@farzadmf
@farzadmf Ай бұрын
Very nice explanation about requests and limits
@AntonPutra
@AntonPutra Ай бұрын
thank you!
@boot-strapper
@boot-strapper Ай бұрын
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 Ай бұрын
yes it pretty good, just be careful how you deploy it
@EdwinMartin
@EdwinMartin Ай бұрын
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 Ай бұрын
coming soon
@technovikingnik
@technovikingnik Ай бұрын
Thank you sir, it was very well explained up to the point.
@AntonPutra
@AntonPutra Ай бұрын
thank you!
@capfoo
@capfoo Ай бұрын
Nodejs performance actually quite good, nice.
@AntonPutra
@AntonPutra Ай бұрын
yes
@e2e23e
@e2e23e Ай бұрын
Thanks for doing the part2 ❤
@AntonPutra
@AntonPutra Ай бұрын
my pleasure! i'll do more node in the future including comparing cluster mode with horizontal scaling
@Baboi62182
@Baboi62182 Ай бұрын
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 Ай бұрын
will do
@thomasp3428
@thomasp3428 Ай бұрын
Congratulations to Golang for its fair participation in NodeJS Paralympics.
@DrewryPope
@DrewryPope Ай бұрын
Lol
@AntonPutra
@AntonPutra Ай бұрын
😂
@MarcusTorres-zv5cv
@MarcusTorres-zv5cv Ай бұрын
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 Ай бұрын
@@MarcusTorres-zv5cv Yeah, there are scalable structures. AWS billing goes brrrr...
@thomasp3428
@thomasp3428 Ай бұрын
@@MarcusTorres-zv5cv ok junior
@AlexanderMoon
@AlexanderMoon Ай бұрын
Amazing, as usual. Thank you!
@AntonPutra
@AntonPutra Ай бұрын
thanks!😊
@rocketbox9
@rocketbox9 Ай бұрын
I love Anton! Can you also do these same tests using a k8s ARM architecture? please
@AntonPutra
@AntonPutra Ай бұрын
i did one in the past with graviton, and i'll definitely refresh it soon
@sam_8a
@sam_8a Ай бұрын
Would love a video on how to do such benchmark with those graphs
@AntonPutra
@AntonPutra Ай бұрын
i'll do it in the near future
@federico7551
@federico7551 Ай бұрын
Great video! Can you please do something to improve Java application performance on K8s as well? Thanks!
@AntonPutra
@AntonPutra Ай бұрын
yes, i'll come back to Java soon
@siraz6899
@siraz6899 Ай бұрын
Vote up for this
@pawegraczyk6050
@pawegraczyk6050 Ай бұрын
Way better now...
@AntonPutra
@AntonPutra Ай бұрын
yes thanks
@zakimimit
@zakimimit Ай бұрын
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 Ай бұрын
thanks! yes in the future I'll improve it
@myanch200
@myanch200 Ай бұрын
It will be interesting to see Elixir vs go lang
@AntonPutra
@AntonPutra Ай бұрын
will do
@myanch200
@myanch200 Ай бұрын
@@AntonPutra Thank you Anton,amazing videos learning a lot
@snatvb
@snatvb Ай бұрын
this is so useful! thank you!
@AntonPutra
@AntonPutra Ай бұрын
my pleasure!
@nonono9700
@nonono9700 Ай бұрын
Never thought it would be this close
@AntonPutra
@AntonPutra Ай бұрын
yeap, i'll test more. i want to know how nodejs cluster mode compares with standalone
@misalambasta
@misalambasta Ай бұрын
As compare to last node vs go, in this node performed very close to golang.
@AntonPutra
@AntonPutra Ай бұрын
yes due to improvements
@whiletrue1-wb6xf
@whiletrue1-wb6xf Ай бұрын
Great video! Could you share which monitoring application you're using to collect all those graphs?
@javohirmirzo
@javohirmirzo Ай бұрын
great vid! how you pronounce availability is funny tho lol
@AntonPutra
@AntonPutra Ай бұрын
thanks :)
@j.r.r.tolkien8724
@j.r.r.tolkien8724 Ай бұрын
Thank you.
@AntonPutra
@AntonPutra Ай бұрын
my pleasure, bun is next
@ZodakZach
@ZodakZach Ай бұрын
These videos are awesome. Do you get a pretty high AWS bill from running these kinds of tests?
@AntonPutra
@AntonPutra Ай бұрын
thanks! I need to set up an infra support fund 😊
@mj-lc9db
@mj-lc9db Ай бұрын
Insane!
@AntonPutra
@AntonPutra Ай бұрын
yeah i know 😊
@miralirafiyev4646
@miralirafiyev4646 Ай бұрын
MongoDB vs Postgres ( or Mysql ) please.
@AntonPutra
@AntonPutra Ай бұрын
i think it's much easier to scale mongo horizontally then postgres with read only replicas, but i'll see what i can do
@ggcc3261
@ggcc3261 Ай бұрын
First! Thanks for making these btw
@AntonPutra
@AntonPutra Ай бұрын
my pleasure!
@emersonmicu1683
@emersonmicu1683 Ай бұрын
Really cool videos, may I know the program you use for video animations?
@AntonPutra
@AntonPutra Ай бұрын
thanks! sure adobe suite
@def-any
@def-any Ай бұрын
Go vs Bun please!!!
@AntonPutra
@AntonPutra Ай бұрын
yes, but deno vs. node.js vs bun is next, then with go
@def-any
@def-any Ай бұрын
@@AntonPutra ty!
@guoard
@guoard Ай бұрын
Perfect..
@AntonPutra
@AntonPutra Ай бұрын
thanks!
@pintokatendejonathan1740
@pintokatendejonathan1740 Ай бұрын
Thank you for your content Can you do the same for Django vs FastApi vs Flask
@AntonPutra
@AntonPutra Ай бұрын
yes, i'll cover python frameworks more in near soon
@Mylordkaz
@Mylordkaz Ай бұрын
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 Ай бұрын
not yet but i'll create one soon
@katungiyassin9947
@katungiyassin9947 Ай бұрын
Hope you do Erlang vs Zig vs Rust
@AntonPutra
@AntonPutra Ай бұрын
ok noted!
@r0nni34
@r0nni34 Ай бұрын
This had me wondering what would be the theoretical max limit a language can handle if given higher specs.
@AntonPutra
@AntonPutra Ай бұрын
well it depends how many threads they create and in general adapt to multi core processors but i'm sure there is a limit
@alekc7292
@alekc7292 Ай бұрын
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 Ай бұрын
i have it here - github.com/antonputra/tutorials/tree/main/lessons/135 i'm planing to create another tutorial on monitoring soon
@ehfoss
@ehfoss Ай бұрын
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 Ай бұрын
I'll double check
@TheCreepyMoto
@TheCreepyMoto Ай бұрын
Ever going to see Bun , Deno vs something ?
@AntonPutra
@AntonPutra Ай бұрын
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
@rayhu_dev
@rayhu_dev Ай бұрын
Nice man, could you please also create .NET vs Java benchmark.
@AntonPutra
@AntonPutra Ай бұрын
sure in the future
@rayhu_dev
@rayhu_dev Ай бұрын
@@AntonPutra appreciate
@THE_NE0
@THE_NE0 Ай бұрын
Still waiting for the .NET part 2 :(
@AntonPutra
@AntonPutra Ай бұрын
I'll definitely come back to it and improve in near future
@Kavantix
@Kavantix Ай бұрын
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 Ай бұрын
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 Ай бұрын
Could you compare cloudflare workers with hono vs go aws lambda?
@AntonPutra
@AntonPutra Ай бұрын
ok, i'll see what i can do
@ivanarsenev4474
@ivanarsenev4474 Ай бұрын
@@AntonPutra Thank you, your channel one of the best things that I checking in moring in my subscriptions.
@mehrdad-ai
@mehrdad-ai Ай бұрын
Please compare bun vs go va rust
@AntonPutra
@AntonPutra Ай бұрын
close :) next Deno vs. Node.js vs Bun
@skuwamy
@skuwamy Ай бұрын
wait bun vs go vs rust? huh?
@mehrdad-ai
@mehrdad-ai Ай бұрын
@@skuwamy bun is written in rust
@mehedirifat9072
@mehedirifat9072 Ай бұрын
Please do a video on SurrealDB vs PostgreSQL
@AntonPutra
@AntonPutra Ай бұрын
ok noted
@siddharthd6141
@siddharthd6141 Ай бұрын
please compare CROW (C++) vs Java or GO ??? pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
@AntonPutra
@AntonPutra Ай бұрын
will do! but next Deno vs. Node.js vs Bun
@enzodossantos2546
@enzodossantos2546 Ай бұрын
i would like to see Laravel vs Node vs Golang :)
@AntonPutra
@AntonPutra Ай бұрын
i'll do some php soon
@kamurashev
@kamurashev Ай бұрын
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 Ай бұрын
thanks 🙂
@yannickpeter8607
@yannickpeter8607 Ай бұрын
What would be the effect if i do not set cpu limits at all?
@AntonPutra
@AntonPutra Ай бұрын
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.
@bo_leang
@bo_leang Ай бұрын
I am interested in your explanation on this video. What animation did you use for your video?
@AntonPutra
@AntonPutra Ай бұрын
adobe suite
@Charith_LakshanJ
@Charith_LakshanJ Ай бұрын
What is that monitoring setup ?? dashboard looking clean.
@AntonPutra
@AntonPutra Ай бұрын
thanks, i use prometheus + grafana, basic staff
@rankala
@rankala Ай бұрын
elixir would be interesting 🙂
@AntonPutra
@AntonPutra Ай бұрын
i'll do it in near future
@Александр-т9ф2ф
@Александр-т9ф2ф Ай бұрын
Round 3 -> Nodejs(fastify) vs go
@skuwamy
@skuwamy Ай бұрын
Yeah lets use Go Fiber so that these javascript devs get triggered again hahha.
@AntonPutra
@AntonPutra Ай бұрын
next, i'll do deno vs. node.js vs bun, then take the fastest and compare it with go 😊
@RavenXplod
@RavenXplod Ай бұрын
Bun(Hono) vs Go...... Please
@roccociccone597
@roccociccone597 Ай бұрын
Go is faster. That's about it
@AntonPutra
@AntonPutra Ай бұрын
deno vs. node.js vs bun is next, then i'll compare it with go
@RavenXplod
@RavenXplod Ай бұрын
@@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
@wahidfeb
@wahidfeb Ай бұрын
can we get laravel benchmark?
@AntonPutra
@AntonPutra Ай бұрын
yes a maybe one or more for js and then php
@wahidfeb
@wahidfeb Ай бұрын
@@AntonPutra thank you
@Maric18
@Maric18 Ай бұрын
the explanation of milicores kind of ... looped? it felt like it was explaining the same concept 3 different ways
@AntonPutra
@AntonPutra Ай бұрын
well, maybe i tried to give as many examples as possible
@Maric18
@Maric18 Ай бұрын
@@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
@elvispalace
@elvispalace Ай бұрын
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 Ай бұрын
bro is javascript one of the easiest language to learn lol.
@conundrum2u
@conundrum2u Ай бұрын
he's not talking about the language, he's referring to the underlying runtime and architectural considerations ​@@skuwamy
@elvispalace
@elvispalace Ай бұрын
​@@skuwamy you just need to learn the sintaxe to create scalable application, understood
@EdwinMartin
@EdwinMartin Ай бұрын
@@elvispalaceit’s not about syntax
@habibosaye
@habibosaye Ай бұрын
@@EdwinMartin lol, I think he is being sarcastic 😅 Wait…?
@kostan3v
@kostan3v Ай бұрын
Let's see how Dart (with Shelf) competes
@AntonPutra
@AntonPutra Ай бұрын
ok noted
@70sHindiSongs
@70sHindiSongs Ай бұрын
Can you do bun vs go please ?
@geraldofebrian7119
@geraldofebrian7119 Ай бұрын
Php vs php concurrent vs go please
@AntonPutra
@AntonPutra Ай бұрын
soon
@rafael.aloizio1769
@rafael.aloizio1769 Ай бұрын
For those who knows your Chanel very well, it's useless to blur the screen on the beginning of the benchmark videos 😂😂😂 we all know that the blue line is for go lang, what surprises me most, is node not being a green line 😂😂😂😂😂
@AntonPutra
@AntonPutra Ай бұрын
i'll start picking random colors thanks for the tip 😊
@MrDejvidkit
@MrDejvidkit Ай бұрын
Can you compare the GoLang and Scala web framworks like ZIO Http?
@AntonPutra
@AntonPutra Ай бұрын
yes i'll do scala in the future
@RogerGailland
@RogerGailland Ай бұрын
Can someone explain to me what Anton means when he says Go starts caching requests?!?
@damirca
@damirca Ай бұрын
Please do rails vs phoenix
@SidharthKaushik
@SidharthKaushik Ай бұрын
Please do a node js vs rust
@a0flj0
@a0flj0 Ай бұрын
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 Ай бұрын
yeah, in the future, but probably not node. instead, deno or bun vs rust
@WiseWeeabo
@WiseWeeabo Ай бұрын
Now do Node vs Rust so we can really blow them out the water xD
@a0flj0
@a0flj0 Ай бұрын
Rust will obviously be even better, since Anton already did a similar test of Rust vs Go, and Rust was decisively better than Go. But, as someone already mentioned above, for a very large number of applications node is good enough, i.e. you don't get enough runtime savings from using a compiled, statically typed language that generates more efficient binaries to justify the higher development time costs. Node has a very well carved out niche in which it is pretty much the best choice, and unlikely to be replaced by anything in the foreseeable future.
@AntonPutra
@AntonPutra Ай бұрын
i'll do a comparison with rust, but probably with bun
@WiseWeeabo
@WiseWeeabo Ай бұрын
@@AntonPutra The reason I make the comment is that I think Node (and Java, and C#) are in the realm of companies that are looking at Rust and C++ (because C23) because it has a potential "very large" benefit that may be too big to ignore in light of the fact where the trade-off used to be much greater before Rust and in older versions of C++ that were not modern enough for a modern workforce and a modern codebase and architecture, but now is much more relevant.
@ivankudryavcev2675
@ivankudryavcev2675 Ай бұрын
fastapi vs go
@AntonPutra
@AntonPutra Ай бұрын
noted
@Maks-fc7kv
@Maks-fc7kv Ай бұрын
Funny to observe people still think Bun is really Node killer and really faster & better 😁 ( one more killer, oh no 😁) Like, uWebSocket used by Bun faster than Rust Actix Web, so the comparison with NodeJS related on req/res for sure will be faster lol, but at the same time checking if string starts with some specific substring was ~14 times slower vs NodeJS. Checkmate.
@Maks-fc7kv
@Maks-fc7kv Ай бұрын
Just take a look at the amount of Bun devs/community and think how much time do they need to fix all the problems/bugs they have, to deliver everything NodeJS has today. I guess lots.
@AntonPutra
@AntonPutra Ай бұрын
testing bun right now
@tinydev2683
@tinydev2683 Ай бұрын
Gleam vs Rust vs GO pls u should test it 🙏
@AntonPutra
@AntonPutra Ай бұрын
noted!
@ivan.jeremic
@ivan.jeremic Ай бұрын
I'm no benchmark pro but for it to be fair shouldn't you enable Worker Threads in Node?
@AntonPutra
@AntonPutra Ай бұрын
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
@belkocik
@belkocik Ай бұрын
Are you going to test nodejs with fastify (with pm2 load balancer with max 3 cores config?) vs go?
@AntonPutra
@AntonPutra Ай бұрын
well maybe i'll do fastify, next Deno vs. Node.js vs Bun
@belkocik
@belkocik Ай бұрын
@@AntonPutraNice! Would love to see how fastify performs with load balancer vs go std.
@WorkerThreads
@WorkerThreads Ай бұрын
Go test with thread limit golang node vs go single thread node cluster vs go
@AntonPutra
@AntonPutra Ай бұрын
thanks, maybe i'll do it in the future
@ghostvar
@ghostvar Ай бұрын
no one mentioned ruby or ruby on rails
@AntonPutra
@AntonPutra Ай бұрын
😊
@forKotlinsky
@forKotlinsky Ай бұрын
hi. what about python and php?
@AntonPutra
@AntonPutra Ай бұрын
will do soon
@manoelhc
@manoelhc Ай бұрын
deno vs go please
@AntonPutra
@AntonPutra Ай бұрын
ok, testing bun right now
@cbk620
@cbk620 Ай бұрын
Pls C++builder Vs c# and c++builder Vs visuall c++
@iceben97
@iceben97 Ай бұрын
Go vs Encore.ts pleaseeeee
@AntonPutra
@AntonPutra Ай бұрын
noted!
@gahshunker
@gahshunker Ай бұрын
The blurring on the first few minutes is irrelevant. We can figure which one is go and nodejs by line color and character lenghta 😂
@AntonPutra
@AntonPutra Ай бұрын
😇
@errores-me6yu
@errores-me6yu Ай бұрын
я понимаю что это очень специфично, но если есть возможность, можешь, пожалуйста, протестировать php swoole, это расширение, которое меняет работу php
@errores-me6yu
@errores-me6yu Ай бұрын
по идее можно laravel octane + swoole
@AntonPutra
@AntonPutra Ай бұрын
da obyazatelno sdelay swoole skoro
@AntonPutra
@AntonPutra Ай бұрын
👋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 Ай бұрын
please do, node vs php vs python since they kind of serve similar purpose
@Timo4eus
@Timo4eus Ай бұрын
c# vs java
@Tom-mx1ec
@Tom-mx1ec Ай бұрын
Test FastApi, it would be very interesting to see ;)
@Justsomeguy492
@Justsomeguy492 Ай бұрын
i would like to see more spring boot
@belkocik
@belkocik Ай бұрын
@@AntonPutra fastify with pm2 (load balancer with 3 cores) vs go std.
@AlexKubrinsky
@AlexKubrinsky Ай бұрын
Where I can find a client code/config? Thanks!!
@AntonPutra
@AntonPutra Ай бұрын
i need to refactor it and i'll make it public
@MrLOPIU22
@MrLOPIU22 Ай бұрын
do go fiber vs php swoole
@AntonPutra
@AntonPutra Ай бұрын
i'll do php soon
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 1,7 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 225 М.
MySQL vs PostgreSQL Performance
13:23
Anton Putra
Рет қаралды 45 М.
Ollama on Kubernetes: ChatGPT for free!
18:29
Mathis Van Eetvelde
Рет қаралды 7 М.
new critical linux exploit has been hiding for 10 years.
9:32
Low Level
Рет қаралды 138 М.
Go vs Rust vs Bun vs Node | Prime Reacts
18:07
ThePrimeTime
Рет қаралды 175 М.
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 107 М.
Nginx vs Apache Performance
14:57
Anton Putra
Рет қаралды 38 М.
Rust vs Go: Performance Benchmark in Kubernetes #205
17:16
Anton Putra
Рет қаралды 168 М.
ИГРОВОЙ ПК от ИЛОНА МАСКА, Распаковка
32:50
Наклейка SSD 💽
0:24
serg1us
Рет қаралды 513 М.
ПРОДАЛИ ЮТУБ КНОПКУ ЗА ПК
1:00
VA-PC
Рет қаралды 78 М.
Лучший лайфхак для клавиатуры 🤡
0:57
ПРОСТО ЛЕШКА
Рет қаралды 2,8 МЛН
Making iPhone16 pink📱
0:34
Juno Craft 주노 크래프트
Рет қаралды 27 МЛН