Go vs Rust vs Bun vs Node | Prime Reacts

Go vs Rust vs Bun vs Node | Prime Reacts

ThePrimeTime

9 месяцев назад

163,729 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@rachaitya
@rachaitya - 01.02.2024 05:45

All you guys are losers, I write my web server in assembly and with my 8 years P.hd in CS from MIT experience... Let's se wo gonna challenge this

Ответить
@andremazetto
@andremazetto - 28.11.2023 00:52

What API library was used in RUST for this test?

Ответить
@CheckM4t3d
@CheckM4t3d - 19.11.2023 11:58

I like rust but in my opinion writing good concurrent code is pretty hard. I build a implementation of Conway's game of life where in go it was easy to do. I used two threads: one where the game would update (iter the game following Conway's rules) and in the other thread I rendered the game with Raylib. In go it was as easy as go func() {game.update()} in rust, it was a whole different story. I had to use an arc mutex to be able to move the game struct around. It also worked poorly, getting less FPS than Go! (I get it isn't that fair of an example given I'm using a external library, Raylib, but they are pretty much 1:1 bindings of the C version). I love Rust's safety, Rust's syntax, I love ranges, I love enums, I love traits, but I hate concurrency. I know it's probably my fault for using an arc mutex to move a struct around but I couldn't find a better way and in Go it was just as simple as using it.

Ответить
@harishscrewshortvideo7553
@harishscrewshortvideo7553 - 27.10.2023 15:28

Big thanks for this web hosting guide! Ive experienced GoDaddy and Hostinger, but Cloudways with TST20 couppon is the true wallet-saver.

Ответить
@vangogalon
@vangogalon - 26.10.2023 06:05

Nice idea, i'm I was thinking about it
::)

Ответить
@ra_benton
@ra_benton - 06.10.2023 00:42

That really looks like an upload / download speed limitation. They were all coming in right around 3MB/s transfer when running in Linode. It's pretty unbelievable the bottleneck is the server or Linode's network. If that is a limitation from Linode, then it'd be better to test against AWS or GCP.

Ответить
@pjmq
@pjmq - 27.09.2023 12:07

Presenting runtime comparisons in a game streamer format... not my favourite thing.

Ответить
@meetjamsutkar394
@meetjamsutkar394 - 26.09.2023 19:01

django supremacy

Ответить
@roryskyee
@roryskyee - 23.09.2023 10:07

100c is too ridiculous

Ответить
@saultube44
@saultube44 - 21.09.2023 15:55

Node Tokio!

Ответить
@sep1ol
@sep1ol - 20.09.2023 15:31

it would be so cool if u made this benchmark (maybe adding some more technologies) and walk us through it :)

Ответить
@gotoastal
@gotoastal - 20.09.2023 08:45

Bun would be better if unlike the others didn’t limit its entire community space to proprietary Discord.

Ответить
@MrEo89
@MrEo89 - 20.09.2023 02:49

What’s FFI? Same FFI as other FFIs?

Ответить
@ivanjijon8647
@ivanjijon8647 - 19.09.2023 23:15

What an ugly way to show the results. Scrolling to compare? Are you kidding me?!

Ответить
@erniea5843
@erniea5843 - 18.09.2023 18:34

Interesting but does this matters for 90% of the apps out there?

Ответить
@ArnorHjaltason
@ArnorHjaltason - 18.09.2023 14:19

There is a big outlier in the rust data in the max requests per second being 138k while all the other samples have values that are significantly lower.
The average req/s and stds are comparable for all the samples while this datapoint is out by about 5x and unexplained in the article.

Ответить
@andrewdunbar828
@andrewdunbar828 - 18.09.2023 09:54

You make it sound like all C++ implementations should be equally fast. There's also the rigmarole involved in the FFI when calling a C/C++/Rust/Zig implementation from a js/python/etc interface. There's sufficient places for variance.

Ответить
@blackzerosrb
@blackzerosrb - 18.09.2023 00:46

We dont know how node is configured and what config is behind multithread. I bet its configured bad and not all cores are utilized.

Ответить
@andreasWebDev
@andreasWebDev - 17.09.2023 23:53

Damn, I love Deno 🚀

Ответить
@fadhilinjagi1090
@fadhilinjagi1090 - 17.09.2023 22:34

Why does Deno not make it to the conversation?

Ответить
@netoskin
@netoskin - 17.09.2023 22:02

I get the results but I hate how he presents them why didn't he make some plots to read the results in an easier manner

Ответить
@nithinkjoy2158
@nithinkjoy2158 - 17.09.2023 20:42

deno cries in a corner. They are not even considering me for competition.

Ответить
@64_Tesseract
@64_Tesseract - 17.09.2023 18:02

Imagine having a web server more complicated than `nc -lc jq`
Tom's a genius btw

Ответить
@michaelrivera131
@michaelrivera131 - 17.09.2023 16:32

Bun is the cutest. Bun wins.

Ответить
@carlosmspk
@carlosmspk - 17.09.2023 16:19

That was the coldest hot take I've ever seen

Ответить
@SkillTrailMalefiahs
@SkillTrailMalefiahs - 17.09.2023 15:54

Very bad comparation format ... I like your video but Dislike post xD

Ответить
@enri_feka
@enri_feka - 17.09.2023 11:58

c# would have destroyed all of them if it was included

Ответить
@TheAkiller101
@TheAkiller101 - 17.09.2023 10:06

This is an unfair comparison node rust and go are tested in runtimes and the other is a buntime

Ответить
@M-Wulff
@M-Wulff - 17.09.2023 09:37

We need to add PHP to the mix of "cool kids"

Ответить
@johnh1353
@johnh1353 - 17.09.2023 07:01

11 out of 10 of these types of tests always result with a :facepalm:

Ответить
@u9vata
@u9vata - 17.09.2023 06:12

I honestly thought bun being faster because of uWebsockets (I used from c++) - so this seems so much JS overhead of just the language???

Ответить
@iCrimzon
@iCrimzon - 17.09.2023 06:11

But can you write an OS with Bun

Ответить
@nonefvnfvnjnjnjevjenjvonej3384
@nonefvnfvnjnjnjevjenjvonej3384 - 17.09.2023 06:11

Go is the language. Fast enough, simple enough. Everything else is a madhouse these days.

Ответить
@mindasb
@mindasb - 17.09.2023 05:48

I'm a little worried about the connection?
Well you should be worried a lot. No one should do a comparative benchmark over a network. LOL.

Ответить
@illegalsmirf
@illegalsmirf - 17.09.2023 04:10

PHP and jQuery

Ответить
@danvilela
@danvilela - 17.09.2023 00:50

Who is Kyle Simpson? I mean, the NAME.. starts with simp

Ответить
@Tony-dp1rl
@Tony-dp1rl - 16.09.2023 23:43

We are almost never CPU limited at the application level, and if we are, we just scale to more nodes. Which is why Rust and Go are not really that important to 90% of scenarios. And for that 10%, I would probably use C or C++ anyway and make the library accessible to Node. Less hassle.

Ответить
@MelroyvandenBerg
@MelroyvandenBerg - 16.09.2023 22:50

Next time look at req/sec.

Ответить
@tuskiomisham
@tuskiomisham - 16.09.2023 22:48

These sorts of benchmarks are always very dumb as it's always done by a developer that knows one thing way better than the others and can make one thing in one language way faster than all the others. It's like asking a fish if it's faster to travel by sea by land or by air. Guess what the fish will pick. .

Ответить
@marhoonothoja4144
@marhoonothoja4144 - 16.09.2023 22:13

It's hilarious because Python devs would be more than happy to get the numbers node got

Ответить
@hypergraphic
@hypergraphic - 16.09.2023 21:53

I did a similar test locally using drill to measure the performance and bun did very well.

Ответить
@VedranRodic
@VedranRodic - 16.09.2023 21:43

the second (Linode) set of tests is not really useful because most of the time is spent waiting for the network (his local PC <-> Linode)

Ответить
@mamun5694
@mamun5694 - 16.09.2023 20:47

The cloud servers are the bottleneck here. This drawback gives bun the time to catch up with rust/go.

Ответить
@Darkitz69
@Darkitz69 - 16.09.2023 20:30

Yo. The Article didnt build bun properly (i think). By default bun does --target=browser and not --target=bun, which would be the intended thing for a serverside usecase. But the results still make sense in general.

Ответить