The Computer Language
Benchmarks Game

Perl 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.

pidigits
source secs mem gz busy cpu load
Perl 1.90 8,268 261 2.16 100% 2% 3% 9%
Node js 1.16 34,980 599 1.21 1% 1% 99% 3%
regex-redux
source secs mem gz busy cpu load
Perl 10.10 157,208 820 31.98 96% 67% 93% 61%
Node js 4.76 1,152,392 668 5.82 1% 1% 28% 91%
k-nucleotide
source secs mem gz busy cpu load
Perl 37.72 1,255,884 652 131.45 88% 89% 87% 85%
Node js 15.48 395,304 1812 42.72 77% 92% 61% 46%
reverse-complement
source secs mem gz busy cpu load
Perl 6.36 1,495,132 287 6.52 0% 0% 2% 100%
Node js 2.12 1,525,056 1481 4.38 48% 27% 70% 62%
binary-trees
source secs mem gz busy cpu load
Perl 53.02 1,048,568 797 195.75 91% 88% 100% 90%
Node js 7.34 1,262,364 744 22.41 75% 84% 72% 75%
spectral-norm
source secs mem gz busy cpu load
Perl 24.69 12,188 555 96.59 97% 99% 98% 97%
Node js 1.84 61,080 999 6.15 84% 81% 86% 83%
fasta
source secs mem gz busy cpu load
Perl 58.08 55,188 871 59.16 1% 100% 1% 0%
Node js 2.02 67,936 2047 6.27 78% 81% 75% 75%
fannkuch-redux
source secs mem gz busy cpu load
Perl 392.54 12,116 570 1,568.84 100% 100% 100% 100%
Node js 11.89 61,216 1313 45.33 96% 94% 96% 94%
n-body
source secs mem gz busy cpu load
Perl 419.75 6,388 1429 429.50 1% 1% 1% 100%
Node js 8.36 34,332 1268 8.37 0% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Perl 542.82 45,036 586 2,169.30 100% 100% 100% 100%
Node js 4.03 89,888 1122 15.89 99% 98% 98% 99%
Perl

This is perl 5, version 32, subversion 0 (v5.32.0)
built for x86_64-linux-thread-multi

Node js

v15.2.1