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.89 8,344 261 1.90 100% 1% 0% 0%
Node js 1.30 36,036 599 1.32 0% 1% 100% 1%
regex-redux
source secs mem gz busy cpu load
Perl 9.99 156,124 820 29.82 51% 96% 61% 91%
Node js 4.67 1,115,744 668 5.76 2% 2% 29% 91%
k-nucleotide
source secs mem gz busy cpu load
Perl 37.86 1,253,064 652 132.61 84% 95% 87% 85%
Node js 15.41 392,344 1812 42.69 45% 93% 61% 78%
reverse-complement
source secs mem gz busy cpu load
Perl 6.35 1,495,212 287 6.54 100% 2% 0% 0%
Node js 2.07 1,520,640 1481 4.26 14% 67% 61% 62%
binary-trees
source secs mem gz busy cpu load
Perl 84.89 2,519,528 761 309.94 98% 91% 88% 88%
Node js 5.75 1,221,440 711 19.16 81% 88% 84% 80%
spectral-norm
source secs mem gz busy cpu load
Perl 25.68 12,092 555 101.06 98% 99% 98% 98%
Node js 1.66 62,744 999 6.04 90% 90% 93% 90%
fasta
source secs mem gz busy cpu load
Perl 61.34 55,252 871 61.71 0% 0% 100% 0%
Node js 1.91 67,116 2047 6.13 77% 81% 78% 86%
fannkuch-redux
source secs mem gz busy cpu load
Perl 395.61 12,132 570 1,576.97 100% 99% 100% 100%
Node js 11.54 56,856 1313 45.73 99% 99% 99% 99%
n-body
source secs mem gz busy cpu load
Perl 411.70 6,564 1429 435.04 2% 2% 55% 47%
Node js 8.38 35,220 1268 8.47 1% 0% 100% 0%
mandelbrot
source secs mem gz busy cpu load
Perl 532.78 43,996 586 2,130.59 100% 100% 100% 100%
Node js 4.04 87,468 1122 15.91 99% 98% 98% 98%
Perl

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

Node js

v14.8.0