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.68 62,068 999 6.05 89% 90% 91% 90%
TypeScript 5.38 32,860 441 5.43 100% 0% 0% 0%
fannkuch-redux
source secs mem gz busy cpu load
Node js 12.10 57,164 1313 47.74 98% 98% 99% 99%
TypeScript 14.89 56,476 1427 58.79 99% 99% 99% 98%
mandelbrot
source secs mem gz busy cpu load
Node js 4.01 86,468 1122 15.74 98% 98% 99% 98%
TypeScript 4.03 87,324 1183 15.77 97% 99% 97% 97%
regex-redux
source secs mem gz busy cpu load
Node js 4.27 1,064,544 668 5.47 4% 2% 75% 47%
TypeScript 4.29 1,081,968 680 5.35 33% 47% 1% 44%
n-body
source secs mem gz busy cpu load
Node js 8.35 35,628 1268 8.48 1% 100% 0% 0%
TypeScript 8.37 35,864 1293 8.73 100% 3% 0% 2%
binary-trees
source secs mem gz busy cpu load
Node js 5.83 1,204,544 711 19.61 86% 82% 84% 85%
TypeScript 5.63 1,170,752 797 18.84 88% 84% 83% 79%
reverse-complement
source secs mem gz busy cpu load
Node js 2.19 1,340,520 1480 4.46 48% 55% 50% 50%
TypeScript   Failed
pidigits
source secs mem gz busy cpu load
Node js 1.32 36,176 599 1.50 3% 2% 8% 100%
TypeScript   Failed
k-nucleotide
source secs mem gz busy cpu load
Node js 15.06 398,672 1812 41.57 76% 60% 48% 92%
TypeScript   Failed
fasta
source secs mem gz busy cpu load
Node js 2.04 67,420 2047 6.33 76% 85% 75% 74%
TypeScript   Failed
Node js

v14.4.0

TypeScript

Version 3.9.5
node.js

v14.4.0