The Computer Language
Benchmarks Game

Node js versus TypeScript 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.

spectral-norm
source secs mem gz busy cpu load
Node js 1.64 67,912 999 6.11 92% 93% 96% 92%
TypeScript 5.38 34,768 441 5.42 0% 0% 100% 0%
binary-trees
source secs mem gz busy cpu load
Node js 7.20 1,282,116 744 20.39 83% 70% 68% 63%
TypeScript 10.16 1,021,080 842 30.10 75% 72% 72% 78%
regex-redux
source secs mem gz busy cpu load
Node js 4.82 1,150,424 668 5.90 10% 82% 1% 29%
TypeScript 4.85 730,844 680 5.93 10% 1% 29% 82%
n-body
source secs mem gz busy cpu load
Node js 8.60 36,000 1268 8.85 100% 2% 0% 1%
TypeScript 8.63 36,004 1293 8.72 100% 0% 0% 0%
pidigits
source secs mem gz busy cpu load
Node js 1.31 36,792 599 1.33 1% 0% 99% 2%
TypeScript 1.31 37,156 604 1.32 1% 1% 99% 0%
reverse-complement
source secs mem gz busy cpu load
Node js 2.21 1,534,824 1480 4.62 53% 22% 65% 68%
TypeScript   Failed
mandelbrot
source secs mem gz busy cpu load
Node js 4.04 95,888 1122 15.91 100% 98% 98% 99%
TypeScript   Failed
k-nucleotide
source secs mem gz busy cpu load
Node js 15.82 396,716 1812 44.48 63% 47% 81% 90%
TypeScript   Failed
fasta
source secs mem gz busy cpu load
Node js 1.91 72,004 2047 6.18 81% 88% 78% 78%
TypeScript   Failed
fannkuch-redux
source secs mem gz busy cpu load
Node js 11.38 65,452 1313 45.00 99% 99% 99% 99%
TypeScript   Failed
Node js

v16.8.0

TypeScript

Version 4.4.2
node.js

v16.8.0