Which Programming Language Is The Fastest?

Which Programming Language Is The Fastest?. @BenjDicken add a test to execute a two-tiered loop, 10,000 * 100,000 = 1,000,000,000,000 loops, to see which p。

分享
Which Programming Language Is The Fastest?
Photo by Tim van der Kuip on Unsplash

@BenjDicken add a test to execute a two-tiered loop, 10,000 * 100,000 = 1,000,000,000,000 loops, to see which programming language is faster. A motion graphic of the test was created to visualize this.

Speed of execution of fib in different languages
https://x.com/BenjDicken/status/1861811963434770665

Actually, the best part of this kind of program is the ISSUE. Enthusiastic developers contribute versions in various languages, such as Zig, Julia, Perl, Elixir, Fortan, C#, Lua

Also, there are discussions on how to optimize the code.

For Example :

@dolanor mentions a PR # optimize go loops with goroutine, arguing that Golang's strength is in concurrent programming; it's not as efficient as C or Rust in a single thread, and should be optimized with goroutine.

@Brandon-T In # Benchmark Issues, we discuss the problems of existing benchmarks and the direction of improvement. The core idea is that tests should not include extraneous time such as program startup, printing, etc., but should focus on the code execution.

Unconsciously, I almost finished reading the whole issue.

This project reminds me of 1BRC from earlier in the year. It was a great diversion from the boring life of coding. I also learned some performance optimization techniques and participated in discussions with people from all over the world.

I wish there were more events like this.

Update:

I found another blog today: How Much Memory Do You Need in 2024 to Run 1 Million Concurrent Tasks?

阅读更多

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史. 比起草台班子将错就错的神话,面对异常数据时的观测定力才是真的 社交网络上常年流传着一类爽文:某家公司的程序员把代码写崩了,结果不仅没被开除,这个 Bug 反而成了拳头产品,妥妥的爽文主角剧本。 最常被搬出来的有三个:Audio Hijack 写错试用期拯救公。

By huizhou92