The Computer Language
Benchmarks Game

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

spectral-norm
source secs mem gz busy cpu load
Node js 1.84 61,080 999 6.15 84% 81% 86% 83%
TypeScript 5.37 32,832 441 5.37 0% 0% 0% 100%
binary-trees
source secs mem gz busy cpu load
Node js 7.34 1,262,364 744 22.41 75% 84% 72% 75%
TypeScript 9.78 1,299,892 797 33.84 89% 85% 85% 86%
regex-redux
source secs mem gz busy cpu load
Node js 4.76 1,152,392 668 5.82 1% 1% 28% 91%
TypeScript 4.81 1,153,100 680 6.02 1% 2% 30% 91%
n-body
source secs mem gz busy cpu load
Node js 8.36 34,332 1268 8.37 0% 0% 0% 100%
TypeScript 8.41 34,700 1293 8.45 100% 0% 0% 0%
pidigits
source secs mem gz busy cpu load
Node js 1.16 34,980 599 1.21 1% 1% 99% 3%
TypeScript 1.16 35,308 604 1.18 0% 0% 100% 2%
reverse-complement
source secs mem gz busy cpu load
Node js 2.12 1,525,056 1481 4.38 48% 27% 70% 62%
TypeScript   Failed
mandelbrot
source secs mem gz busy cpu load
Node js 4.03 89,888 1122 15.89 99% 98% 98% 99%
TypeScript   Failed
k-nucleotide
source secs mem gz busy cpu load
Node js 15.48 395,304 1812 42.72 77% 92% 61% 46%
TypeScript   Failed
fasta
source secs mem gz busy cpu load
Node js 2.02 67,936 2047 6.27 78% 81% 75% 75%
TypeScript   Failed
fannkuch-redux
source secs mem gz busy cpu load
Node js 11.89 61,216 1313 45.33 96% 94% 96% 94%
TypeScript   Failed
Node js

v15.2.1

TypeScript

Version 4.1.2
node.js

v15.2.1