当前位置:网站首页>各大主流编程语言性能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/。
边栏推荐
- 2022.07.03 (LC 6108 decryption message)
- 2022.07.03 (LC 6109 number of people who know secrets)
- Operator explanation
- IELTS examination process, what to pay attention to and how to review?
- Hisilicon 3559 universal platform construction: YUV422 pit stepping record
- OpenHarmony资源管理详解
- Acwing164. Accessibility Statistics (topological sorting +bitset)
- Visual explanation of Newton iteration method
- Upload avatar on uniapp
- Business implementation - the log is written to the same row of data
猜你喜欢

pycharm专业版下载安装教程

Apifox (postman + swagger + mock + JMeter), an artifact of full stack development and efficiency improvement

分布式BASE理论

Parameter passing mechanism of member methods

2022.07.03(LC_6108_解密消息)
![[IELTS reading] Wang Xiwei reading P3 (heading)](/img/19/40564f2afc18fe3e34f218b7b44681.png)
[IELTS reading] Wang Xiwei reading P3 (heading)

Skills in analyzing the trend chart of London Silver

IELTS examination process, what to pay attention to and how to review?

Netcore3.1 JSON web token Middleware

Data on the number of functional divisions of national wetland parks in Qinghai Province, data on the distribution of wetlands and marshes across the country, and natural reserves in provinces, cities
随机推荐
华为百万聘请数据治理专家!背后的千亿市场值得关注
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
Summer challenge brings you to play harmoniyos multi terminal piano performance
Parameter passing mechanism of member methods
《论文笔记》Multi-UAV Collaborative Monocular SLAM
实战模拟│JWT 登录认证
P3304 [SDOI2013]直径(树的直径)
P3304 [sdoi2013] diameter (diameter of tree)
[Yocto RM]11 - Features
ORB(Oriented FAST and Rotated BRIEF)
"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has
(script) one click deployment of any version of redis - the way to build a dream
Relationship between classes and objects
Deux nombres se remplacent
Continuous modification of business scenario functions
Design of emergency lighting evacuation indication system for urban rail transit station
Date time type and format in MySQL
XML的解析
【selenium自动化】常用注解
4. Scala writes HelloWorld in idea, in-depth analysis of accompanying objects, and association of source packages