The Computer Language
Benchmarks Game

Perl versus Node js fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? 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 6.14 66,508 530 6.25 1% 0% 77% 24%
regex-redux
source secs mem gz busy cpu load
Perl 10.10 157,208 820 31.98 96% 67% 93% 61%
Node js 4.79 1,159,940 668 5.86 91% 2% 1% 29%
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.73 392,924 1812 43.25 91% 62% 75% 47%
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.13 1,525,096 1481 4.31 11% 70% 62% 60%
binary-trees
source secs mem gz busy cpu load
Perl 53.02 1,048,568 797 195.75 91% 88% 100% 90%
Node js 6.95 1,309,892 744 21.41 76% 75% 88% 69%
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 64,452 999 6.18 83% 86% 83% 83%
fasta
source secs mem gz busy cpu load
Perl 58.08 55,188 871 59.16 1% 100% 1% 0%
Node js 2.04 71,304 2047 6.32 75% 80% 80% 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.97 63,036 1313 45.89 96% 96% 95% 96%
n-body
source secs mem gz busy cpu load
Perl 419.75 6,388 1429 429.50 1% 1% 1% 100%
Node js 8.39 35,548 1268 8.74 0% 2% 2% 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.04 92,960 1122 15.95 100% 98% 98% 98%
Perl

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

Node js

v15.10.0