当前位置:网站首页>各大主流编程语言性能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/。
边栏推荐
- Date time type and format in MySQL
- 创新引领方向 华为智慧生活全场景新品齐发
- [circuit design] optocoupler use and circuit design summary
- ||Interview questions you will encounter
- [IELTS reading] Wang Xiwei reading P3 (heading)
- How many triangles are there in the golden K-line diagram?
- Complete knapsack problem (template)
- uniapp上传头像
- Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
- [STM32] (I) overview and GPIO introduction
猜你喜欢
A new method for analyzing the trend chart of London Silver
他做国外LEAD,用了一年时间,把所有房贷都还清了
"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has
pycharm专业版下载安装教程
分布式BASE理论
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
Reasons and solutions of redis cache penetration and avalanche
Les phénomènes de « salaire inversé » et de « remplacement des diplômés » indiquent que l'industrie des tests a...
程序员SQL数据脚本编码能力弱,BI做不出来怎么办?
随机推荐
Ruby tutorial
Hisilicon 3559 universal platform construction: YUV422 pit stepping record
Learning of basic amplification circuit
企业公司项目开发好一部分基础功能,重要的事保存到线上第一a
基本放大电路的学习
Skills in analyzing the trend chart of London Silver
P4408 [noi2003] truant children (tree diameter)
Netcore3.1 JSON web token Middleware
【路径规划】RRT增加动力模型进行轨迹规划
TS快速入门-函数
Kibana index, mapping, document operation
[path planning] RRT adds dynamic model for trajectory planning
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
JS how to realize array to tree
【C】 (written examination questions) pointer and array, pointer
PyTorch: In-place Operation
Is it safe to open and register new bonds? Is there any risk? Is it reliable?
Get to know ROS for the first time
"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has
Daily practice (18): stack containing min function