当前位置:网站首页>各大主流编程语言性能PK,结果出乎意料
各大主流编程语言性能PK,结果出乎意料
2022-07-05 00:38:00 【dotNET跨平台】
出品 | OSC开源社区(ID:oschina2013)
“什么编程语言速度最快”,为了回答这个问题,The Benchmarks Game 专门面向主流编程语言设计了性能测试。测试的项目包括(可点击文末阅读原文查看详情):
fannkuch-redux
n-body
spectral-norm
mandelbrot
pidigits
regex-redux
fasta
k-nucleotide
reverse-complement
binary-trees
开发者根据 The Benchmarks Game 的测试数据制作了一份可视化图表,如下所示,灰色反映的是时间效率,越短代表性能越好,棕色则是基于执行时间和内存开销的加权值。
可以看到,部分结果还是有点出乎意料,比如 Python,虽然众所周知其性能比较落后,但没想到在执行时间方面居然是垫底。C、C++ 和 Rust 的执行时间表现出了领先的优势,紧随其后的包括 C# 和 Julia,Go 和 Java 性能相当,不过排在更后面。
再往后就是 Node.js、Swift 和 Dart,以及 PHP,这几种语言也呈现了不同的性能差距。
相关链接:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/index.html
https://goodmanwen.github.io/Programming-Language-Benchmarks-Visualization/。
边栏推荐
- 【路径规划】RRT增加动力模型进行轨迹规划
- IT转测试岗,从迷茫到坚定我究竟付出了什么?
- 创新引领方向 华为智慧生活全场景新品齐发
- Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
- P4281 [ahoi2008] emergency assembly / gathering (LCA)
- MySQL uses the explain tool to view the execution plan
- Liangzai's first program life and annual summary in 2022
- PyTorch: In-place Operation
- ORB(Oriented FAST and Rotated BRIEF)
- ORB(Oriented FAST and Rotated BRIEF)
猜你喜欢
分布式BASE理论
XML的解析
[STM32] (I) overview and GPIO introduction
[selenium automation] common notes
[path planning] RRT adds dynamic model for trajectory planning
NPM install error forced installation
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
华为200万年薪聘请数据治理专家!背后的千亿市场值得关注
ORB(Oriented FAST and Rotated BRIEF)
Summer challenge brings you to play harmoniyos multi terminal piano performance
随机推荐
[selenium automation] common notes
4. Scala writes HelloWorld in idea, in-depth analysis of accompanying objects, and association of source packages
企业公司项目开发好一部分基础功能,重要的事保存到线上第一a
那些一门心思研究自动化测试的人,最后都怎样了?
P4408 [NOI2003] 逃学的小孩(树的直径)
He worked as a foreign lead and paid off all the housing loans in a year
Advanced template
GDB常用命令
Kibana index, mapping, document operation
If you open an account of Huatai Securities by stock speculation, is it safe to open an account online?
Huawei employs data management experts with an annual salary of 2million! The 100 billion market behind it deserves attention
Les phénomènes de « salaire inversé » et de « remplacement des diplômés » indiquent que l'industrie des tests a...
Huawei employs millions of data governance experts! The 100 billion market behind it deserves attention
Paper notes multi UAV collaborative monolithic slam
abc 258 G - Triangle(bitset)
Summer challenge brings you to play harmoniyos multi terminal piano performance
How to avoid arc generation—— Aafd fault arc detector solves the problem for you
6. Scala operator
How many triangles are there in the golden K-line diagram?
Application of multi loop instrument in base station "switching to direct"