The Q6600
Benchmarks Game

PHP versus Node js fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

regex-redux
source secs mem gz busy cpu load
PHP 2.88 155,276 816 5.63 44% 79% 33% 38%
Node js 9.53 756,856 668 12.74 71% 24% 13% 26%
pidigits
source secs mem gz busy cpu load
PHP 2.11 9,064 399 2.14 100% 1% 0% 0%
Node js 2.58 36,368 599 2.97 100% 6% 7% 2%
k-nucleotide
source secs mem gz busy cpu load
PHP 41.32 169,460 1079 134.99 88% 75% 84% 79%
Node js 26.32 397,472 1812 77.28 74% 71% 62% 87%
binary-trees
source secs mem gz busy cpu load
PHP 51.13 1,584,360 751 187.68 90% 92% 95% 90%
Node js 19.22 1,000,628 711 61.94 80% 82% 82% 79%
reverse-complement
source secs mem gz busy cpu load
PHP 14.19 529,416 438 22.75 35% 54% 49% 21%
Node js 4.10 1,340,368 1480 8.58 52% 56% 73% 28%
spectral-norm
source secs mem gz busy cpu load
PHP 33.24 24,100 1152 128.43 95% 98% 98% 95%
Node js 4.40 61,768 999 16.63 93% 97% 95% 93%
fannkuch-redux
source secs mem gz busy cpu load
PHP 219.15 21,724 1160 870.05 99% 99% 99% 100%
Node js 19.48 58,152 1313 77.05 99% 99% 99% 99%
n-body
source secs mem gz busy cpu load
PHP 329.52 7,716 1082 348.91 21% 4% 43% 37%
Node js 26.28 35,412 1268 28.03 2% 0% 4% 100%
fasta
source secs mem gz busy cpu load
PHP 53.24 7,888 1062 56.38 88% 3% 2% 12%
Node js 3.62 67,488 2047 10.61 72% 75% 72% 74%
mandelbrot
source secs mem gz busy cpu load
PHP 105.40 122,084 875 418.58 99% 99% 100% 99%
Node js 6.84 88,016 1122 26.99 98% 98% 99% 98%
PHP

PHP 7.4.5 (cli) (built: May 11 2020 13:25:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Node js

v14.2.0