Efficiency Comparison 7 languages

Recently seven languages ​​of the project was to test the efficiency, because they do exactly the same test results in order, are:

Nodejs Golang PHP Python Ruby Lua Perl

Nodejs v10.15.3: real 0m12.658s user 0m0.015s sys 0m0.061s

Golang 1.12.2: real 0m13.915s user 0m0.000s sys 0m0.031s

PHP 7.3.2: real 0m42.705s user 0m0.015s sys 0m0.046s

Python 3.7.2: real 0m55.340s user 0m0.000s sys 0m0.046s

Ruby 2.3.3: real 0m58.837s user 0m0.000s sys 0m0.061s

Lua 5.3.4: real 1m27.033s user 0m0.015s sys 0m0.030s

Perl v5.26.2: real 2m59.910s user 2m51.288s sys 0m0.436s

The above test machine is a dual-core PC 8G, we are interested can test yourself. https://gitee.com/str/myspp

Reproduced in: https: //my.oschina.net/u/563463/blog/3057748

Guess you like

Origin blog.csdn.net/weixin_34067102/article/details/92004093