2017 golang, python, php, C + +, c, java, nodejs Performance Comparison [cont.]

Source: Internet
Author: User

2017 golang, python, php, C + +, c, java, nodejs Performance Comparison [cont.]

Recently busy, This topic put a few days, today to a sequel. Previous portal: 2017-year golang, python, php, C + +, c, java, Nodejs performance comparison (golang python PHP C + + java Nodejs performance)

well, Some of the last things some people have objections, today also responded.

1. Some people say that Python performance is not that low?

This I used PyPy 2.7 confirmed, It is not so bad, if you use NumPy or other version of python, the performance is Faster. But PyPy is not perfect, pypy3 in beta, so the general situation, I mean in general, this is more Unpleasant.

[email protected]:/works/learncpp$ pypy-v && timePyPy Fib.pypython2.7. a(aff251e54385, Nov the  ., -: -: the) [pypy5.6.0With GCC4.2.1Compatible Apple LLVM5.1(clang-503.0. +)]5702887Real 0m0.206suser 0m0.173ssys 0m0.028s

2. Some people say that there is no such thing as C #, Rust, ruby?

I just want to speak the language millions, too many, but the energy does not put on the tool, chooses a suitable is good.

Really want to see, also have:

time total
Language CPUslower than Language
Version
Source
Code
User System C + + previous
C + + (optimized with-o2) 0.899 0.053 0.951 g++ 6.1.1 Link
Rust 0.898 0.129 1.026 7% 7% 1.12.0 Link
Java 8 (non-std Lib) 1.090 0.006 1.096 15% 6% 1.8.0_102 Link
Python 2.7 + PyPy 1.376 0.120 1.496 57% 36% PyPy 5.4.1 Link
C #. NET Core Linux 1.583 0.112 1.695 78% 13% 1.0.0-preview2 Link
Javascript (nodejs) 1.371 0.466 1.837 93% 8% 4.3.1 Link
Go 2.622 0.083 2.705 184% 47% 1.7.1 Link
C + + (not optimized) 2.921 0.054 2.975 212% 9% g++ 6.1.1 Link
PHP 7.0 6.447 0.178 6.624 596% 122% 7.0.11 Link
Java 8 (see Notes) 12.064 0.080 12.144 1176% 83% 1.8.0_102 Link
Ruby 12.742 0.230 12.972 1263% 6% 2.3.1 Link
Python 3.5 17.950 0.126 18.077 1800% 39% 3.5.2 Link
Perl 25.054 0.014 25.068 2,535% 38% 5.24.1 Link
Python 2.7 25.219 0.114 25.333 2,562% 1% 2.7.12 Link


and authoritative comparison: https://benchmarksgame.alioth.debian.org/u64q/go.html original https://blog.famzah.net/2016/09/10/ cpp-vs-python-vs-php-vs-java-vs-others-performance-benchmark-2016-q3/

Let's See.

  

finally, add a big picture to show everything

But the figure does not count compile time, the dynamic language is not fair.

In addition, performance difference is not small, who developed high efficiency, who is the king, obviously go is the future star (perhaps to add one, haha), Nodejs potential!!!

  

  

2017 golang, python, php, C + +, c, java, nodejs Performance Comparison [cont.]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.