Ever wonder how quickly different programming languages can handle massive workloads? We tested one billion nested loops to find out. Zig, Rust, and C blazed through in about half a second—lightning fast! Fortran, Odin, and Dart followed closely, while Java, Kotlin, and C# landed comfortably in the middle. But when we got to Python, Ruby, and R, it took a few seconds—or even more. The difference? Compiled languages excel at raw speed, while interpreted ones trade some performance for flexibility and ease of use. Which would you pick? #coding #programming #learning #jobs #classess
ADVERTISEMENT
no code no talk, show your code first
Bro pulled this list right out of his ass
Where c++
First of all, NODE IS NOT A PROGRAMMING LANGUAGE
AI slop video Data out of my ass Unrelated visualization 10 seconds so zoomers can watch it Welcome to the dead internet
They have to be doing something in the loops or a c compiler would just optimize it away. I've tried to test things like this. I want to see the source as I believe they didn't really run tests.
Without code, i cannot trust it.
When did Node JS become a programming language?
This was proven to be incorrect. The fortran code has a bug and is literally not doing the same work. Also, you have print statements in the loop and you are mostly testing the speed of the print statements and not the loop iteration time
Lua is underrated, the jit compiler is fast as fuck for an interpretes language and the syntax is great.
Zig and Rust faster than C is very strange, we need to see the code writen.
I simply refer to "Language Performance Comparisons Are Junk." I tested the C# version myself and quickly realized that these comparisons are completely unfair.
Don't worry about this. Its doing a bunch of unpredicable integer divisions. If they had been clever with it and used floating point division instead, the compiler would have vectorized the loops. Primegeon and Casey tore it to pieces. youtu.be/RrHGX1wwSYM The same group then did a Levenshtein distance on 30 strings and the Fortran solution had a bug in it that allowed it to not consider the full length of the string and get some speed up. youtu.be/uVVhwALd0o4 If you want to know what's what, go see Dave's Garage and his speed test where he found that 5) Java, 4) C++, 3) C, 2) Rust, and 1) Zig are the fastest languages.
Another CLI parsing benchmark lmao
Lisp, Scala and Lua are extremely flexible, high level programming language, and on your graphic you can see they execute extremely fast.
Julia for sure isn't where if should be.
To defend R, under the hood of most used packages are C or Fortran called procedures that speed things up. R is for making the often adjusted top layer of script readable (tidyverse).
my language would blow all of these out of the water, and it's simple enough that i only need my head to compile it. the key is to unroll empty nested loops into 0 compiler instructions. that's petty much all my language does, but it does it really well! this is the full file:
It depends on what you are programming. Languages are tools you have to use the right one for the right job. Here are the ones I chose from. Python, C++, Java, JS, SQL, HTML/CSS
Any discussion about which language is the fastest always includes a lot of “if”: it depends on a task, on implementation, on the compiler flags and other things… Plus, what was the machine on which you did your tests? Obviously, there’s a hierarchy: compiled < compiled to VM execution < scripting languages Other things depend on million factors And finally, when you compare the compiled programming languages, you compare the compiler optimisations, both general and for a specific architecture of your processor