The Computer Language
Benchmarks Game

PHP versus Node js fastest programs

by faster benchmark performance

pidigits
source secs mem gz cpu cpu load
PHP 2.16 10,896 399 2.16 0% 1% 100% 0%
Node js 14.27 63,108 530 14.34 65% 1% 1% 36%
regex-redux
source secs mem gz cpu cpu load
PHP 2.61 270,552 816 2.44 79% 40% 40% 42%
Node js 11.98 849,192 408 12.82 17% 37% 3% 52%
k-nucleotide
source secs mem gz cpu cpu load
PHP 41.29 250,628 1079 134.20 74% 78% 90% 90%
Node js 64.78 1,822,300 935 137.52 95% 70% 78% 69%
reverse-complement
source secs mem gz cpu cpu load
PHP 12.54 513,344 438 7.51 59% 6% 61% 28%
Node js 16.41 709,792 1103 17.86 34% 8% 38% 29%
spectral-norm
source secs mem gz cpu cpu load
PHP 38.56 20,848 1152 153.24 99% 100% 99% 99%
Node js 15.81 31,788 381 15.80 0% 1% 100% 0%
binary-trees
source secs mem gz cpu cpu load
PHP 58.93 765,500 868 214.32 90% 98% 92% 90%
Node js 23.78 346,456 431 39.43 46% 35% 28% 58%
fannkuch-redux
source secs mem gz cpu cpu load
PHP 227.59 35,536 1160 906.63 100% 99% 99% 100%
Node js 80.72 30,912 473 80.70 49% 0% 1% 51%
fasta
source secs mem gz cpu cpu load
PHP 56.22 9,632 1062 56.20 2% 100% 0% 1%
Node js 9.24 36,192 1785 9.28 0% 0% 1% 100%
mandelbrot
source secs mem gz cpu cpu load
PHP 118.28 139,504 875 472.05 100% 100% 100% 100%
Node js 18.18 632,008 748 65.32 88% 94% 95% 83%
n-body
source secs mem gz cpu cpu load
PHP 333.78 9,400 1082 333.70 44% 30% 1% 27%
Node js 26.28 33,292 1297 26.28 0% 0% 100% 0%
PHP

PHP 7.3.0 (cli) (built: Dec 6 2018 12:47:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies

Node js

v11.3.0