当前位置:网站首页>The performance of major mainstream programming languages is PK, and the results are unexpected

The performance of major mainstream programming languages is PK, and the results are unexpected

2022-07-04 14:48:00 Hollis Chuang

Hollis In the limited time discount for your new book , An in-depth explanation Java Basic dry goods notes !

Produce | OSC The open source community (ID:oschina2013)

“ What is the fastest programming language ”, To answer this question ,The Benchmarks Game Specially designed performance test for mainstream programming languages . The test items include ( You can click the end of the text to read the original text to view the details ):

  • fannkuch-redux

  • n-body

  • spectral-norm

  • mandelbrot

  • pidigits

  • regex-redux

  • fasta

  • k-nucleotide

  • reverse-complement

  • binary-trees

According to The Benchmarks Game A visual chart is made of the test data of , As shown below , Grey reflects time efficiency , Shorter means better performance , Brown is a weighted value based on execution time and memory overhead .

b158fde543380cb3bdd80d5994097312.png

You can see , Some of the results were somewhat unexpected , such as Python, Although it is well known that its performance is relatively backward , But I didn't expect to be the bottom in terms of execution time .C、C++ and Rust The execution time of shows a leading edge , The following ones include C# and Julia,Go and Java Performance is quite , But it's more behind .

And then there will be Node.js、Swift and Dart, as well as PHP, These languages also present different performance gaps .

Related links :

https://benchmarksgame-team.pages.debian.net/benchmarksgame/index.html

https://goodmanwen.github.io/Programming-Language-Benchmarks-Visualization/.

End

My new book 《 In depth understanding of Java The core technology 》 It's on the market , After listing, it has been ranked in Jingdong best seller list for several times , At present 6 In the discount , If you want to start, don't miss it ~ Long press the QR code to buy ~

6c35a43bc198af14cd29d009b5eda5e1.png

Long press to scan code and enjoy 6 A discount

Previous recommendation

fbfd25ebb9038a8b02e17bbcfb5f1975.jpeg

“ threat ” After all the employees come to work , musk “ embarrassed ” 了 : The car doesn't stop 、 The station is not enough 、Wi-Fi Too bad


b22552f06b5e69561ce7e8c54761bf27.jpeg

Redis Distributed lock failure , I can't help being rude ...


b5ac292576d0d780ba85287bb12cc12c.jpeg

How to prevent your jar Decompiled ?


There is Tao without skill , It can be done with skill ; No way with skill , Stop at surgery

Welcome to pay attention Java Road official account

96362a3ddbfd22a589096473f754e0ea.jpeg

Good article , I was watching ️

原网站

版权声明
本文为[Hollis Chuang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041318257001.html