当前位置:网站首页>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-05 00:48:00 Dotnet cross platform

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 .

01c1c5dca5acce2436ef6c94eb4a103b.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/.

原网站

版权声明
本文为[Dotnet cross platform]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050037465318.html