famzah / langs-performance

C++ vs. Python vs. Perl vs. PHP vs. Java vs. NodeJS vs. Go vs. Ruby vs. Rust vs. Swift vs. D performance benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

langs-performance

C++ vs. Python vs. Perl vs. PHP vs. Java vs. NodeJS vs. Go vs. Ruby vs. Rust vs. Swift vs. D performance benchmark

Blog articles:

The benchmarks here do not try to be complete, as they are showing the performance of the languages in one aspect, and mainly: loops, dynamic arrays with numbers, basic math operations.

The times include the interpretation/parsing phase for each language, but it’s so small that its significance is negligible. The programs run for 90 wall-clock seconds and there are 6 identical runs, in order to have more reliable results. All scripts are using the very same algorithm to calculate the prime numbers in a given range. The correctness of the implementation is not so important, as we just want to check how fast the languages perform. The original Python algorithm was taken from http://www.daniweb.com/code/snippet216871.html.

Another similar project: https://benchmarksgame-team.pages.debian.net/benchmarksgame/

About

C++ vs. Python vs. Perl vs. PHP vs. Java vs. NodeJS vs. Go vs. Ruby vs. Rust vs. Swift vs. D performance benchmark

License:MIT License


Languages

Language:Perl 29.2%Language:Shell 18.4%Language:C++ 13.8%Language:Java 9.8%Language:C# 6.3%Language:Rust 4.6%Language:JavaScript 2.9%Language:Swift 2.8%Language:Python 2.8%Language:D 2.7%Language:Go 2.6%Language:PHP 2.3%Language:Ruby 2.0%