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 3.61 8,548 261 3.69 0% 1% 1% 100%
Node js 2.58 36,368 599 2.97 100% 6% 7% 2%
regex-redux
source secs mem gz busy cpu load
Perl 16.03 156,916 820 46.37 79% 77% 87% 46%
Node js 9.53 756,856 668 12.74 71% 24% 13% 26%
k-nucleotide
source secs mem gz busy cpu load
Perl 61.27 1,069,048 476 191.99 82% 93% 64% 74%
Node js 26.32 397,472 1812 77.28 74% 71% 62% 87%
reverse-complement
source secs mem gz busy cpu load
Perl 10.60 1,494,988 287 10.72 37% 0% 0% 63%
Node js 4.10 1,340,368 1480 8.58 52% 56% 73% 28%
binary-trees
source secs mem gz busy cpu load
Perl 129.89 2,519,152 761 457.58 96% 84% 88% 84%
Node js 19.22 1,000,628 711 61.94 80% 82% 82% 79%
spectral-norm
source secs mem gz busy cpu load
Perl 39.52 12,216 555 154.07 97% 98% 97% 98%
Node js 4.40 61,768 999 16.63 93% 97% 95% 93%
fasta
source secs mem gz busy cpu load
Perl 90.31 55,080 871 90.89 100% 0% 0% 0%
Node js 3.62 67,488 2047 10.61 72% 75% 72% 74%
n-body
source secs mem gz busy cpu load
Perl 729.64 6,528 1429 743.07 29% 47% 2% 24%
Node js 26.28 35,412 1268 28.03 2% 0% 4% 100%
fannkuch-redux
source secs mem gz busy cpu load
Perl 569.32 12,088 570 2,231.43 97% 100% 97% 98%
Node js 19.48 58,152 1313 77.05 99% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Perl 721.25 44,280 586 2,884.18 100% 100% 100% 100%
Node js 6.84 88,016 1122 26.99 98% 98% 99% 98%
Perl

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

Node js

v14.2.0