The Computer Language
Benchmarks Game

Python 3 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
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
Node js 6.14 66,508 530 6.25 1% 0% 77% 24%
regex-redux
source secs mem gz busy cpu load
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Node js 4.79 1,159,940 668 5.86 91% 2% 1% 29%
k-nucleotide
source secs mem gz busy cpu load
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
Node js 15.73 392,924 1812 43.25 91% 62% 75% 47%
reverse-complement
source secs mem gz busy cpu load
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
Node js 2.13 1,525,096 1481 4.31 11% 70% 62% 60%
binary-trees
source secs mem gz busy cpu load
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
Node js 6.95 1,309,892 744 21.41 76% 75% 88% 69%
fasta
source secs mem gz busy cpu load
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
Node js 2.04 71,304 2047 6.32 75% 80% 80% 75%
fannkuch-redux
source secs mem gz busy cpu load
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
Node js 11.97 62,956 1313 45.59 95% 94% 94% 97%
mandelbrot
source secs mem gz busy cpu load
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
Node js 4.04 92,960 1122 15.95 100% 98% 98% 98%
spectral-norm
source secs mem gz busy cpu load
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
Node js 1.84 64,452 999 6.18 83% 86% 83% 83%
n-body
source secs mem gz busy cpu load
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
Node js 8.37 35,576 1268 8.37 0% 0% 100% 0%
Python 3

Python 3.9.0

Node js

v15.10.0