AxelPAL / lang-comparisons

comparison of Node.JS, PHP, Ruby, Python and their frameworks for typical tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lang-comparisons

comparison of Node.JS, PHP, Ruby, Python and their frameworks for typical tasks

Test\Language Node.JS 5.4.0 PHP 7.0.2 Ruby 2.3.0 Python 2.7.6 Python 3.4.0
PI 0,48s 4.12s 5,52s 18,62 26,5s
Mandelbrot 0,04s 0.52s 1,12s 1,33s 1,71s
Exponential_function (native) 0,68s 4.94s 175,8s 0,44s 0,55s
Exponential_function (lib) 0,09s 11.25s - 315,22s 412,08s

Test 1 - Page with 3000 models + pagination, table contains 10000 of records.

Framework Page load Memory consumption
Laravel 5.1.28(LTS) 0.26s 19.32MB
Yii2.0.7-dev 0.31s 21.23MB
Rails 4.2.0 0.56s 150.7MB(*)
SailsJS 0.11.4 0.27s 145MB

(*) - WEBrick build-in server

About

comparison of Node.JS, PHP, Ruby, Python and their frameworks for typical tasks

License:MIT License


Languages

Language:CSS 31.3%Language:PHP 23.3%Language:JavaScript 20.2%Language:HTML 18.2%Language:Ruby 5.1%Language:Python 1.6%Language:Batchfile 0.2%Language:Go 0.1%Language:CoffeeScript 0.0%