I found the fastest programming language #zig #c++ #c #golang #rust #python #programming

preview_player
Показать описание
I made a fibonacci series in 8 different programming languages, and found out that Zig was the fastest one!
Click here for a detailed video:
Рекомендации по теме
Комментарии
Автор

The Fibonacci implementation only shows how the language compilers handle simple, non branching, no caching, single thread code, which is very specific and far from what goes in real software.
Better tests will be to show how it handles external driver communications (aka network), multi threading and synchronization primitives, code branching and high memory consuming code (data intensive applications) and the handling of more complex data structures (structures, enums, unions, lists, graphs, etc…)

lesscomplex
Автор

it depends on how you code, what you code and how you compile it i dont think they have much difference in performance

Cinarbayramic
Автор

go is very slow only the compile speed is fast

bititboy
Автор

I'm more interested in cpu and memory consumption because the prices on the cloud are calculated from memory and cpu usage.

naczu
Автор

This is a horrible way to benchmark. C is the fastest if you can actually use it properly. That means Golang can be even faster than C due to it's excellent os library if you need to read a file.

Assembly is also technically faster than C if you are a god. But C has such a good compiler that it is going to produce better Assembly code than you can write.

chrikke
Автор

Youre supposed to put something over tje Green screen smh

Octogenico
Автор

mi się wydaje że rust szybszy ale trzeba w --release ale możliwe wsm zależy też czy chodzi o gpu cpu ram itp

rubinigor
Автор

It's just a pity that Zig has a small community. the language is really cool, but.... Does no one know about him?

Norskium
Автор

C is not the fastest language? I mean people are able to see the produced Asm code while writing C, try that with another language.

theoriginyt
join shbcf.ru