The Computer Language
Benchmarks Game

all TypeScript programs & measurements

Version 2.5.2
node.js v8.4.0

source secs N mem gz cpu cpu load
binary-trees  0.48  7 19,556 451 0.47 2% 6% 17% 100%
binary-trees  0.62  14 25,600 451 0.62 2% 100% 2% 2%
binary-trees  53.28  21 918,224 451 54.65 19% 2% 12% 72%
source secs N mem gz cpu cpu load
binary-trees  #2 0.48  7 19,516 448 0.47 6% 2% 4% 100%
binary-trees  #2 0.62  14 25,272 448 0.62 0% 100% 3% 0%
binary-trees  #2 53.18  21 918,148 448 54.56 53% 12% 38% 2%
source secs N mem gz cpu cpu load
fannkuch-redux  1.33  10 29,360 445 1.32 1% 2% 100% 1%
fannkuch-redux  10.94  11 29,376 445 10.94 1% 1% 0% 100%
fannkuch-redux  141.37  12 29,408 445 141.33 1% 0% 100% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 1.27  10 29,528 454 1.27 0% 2% 99% 1%
fannkuch-redux  #2 10.27  11 29,448 454 10.27 100% 0% 0% 1%
fannkuch-redux  #2 131.39  12 29,460 454 131.36 2% 100% 1% 0%
source secs N mem gz cpu cpu load
fasta  0.63  250,000 25,704 1205 0.63 100% 0% 0% 0%
fasta  2.10  2,500,000 32,256 1205 2.10 0% 100% 2% 1%
fasta  16.36  25,000,000 32,524 1205 16.35 98% 1% 3% 1%
k-nucleotide  Failed  250,000
source secs N mem gz cpu cpu load
mandelbrot  1.84  1,000 59,824 392 1.90 2% 71% 2% 30%
mandelbrot  9.90  4,000 415,264 392 10.16 61% 2% 40% 2%
mandelbrot  Failed  16,000
source secs N mem gz cpu cpu load
n-body  1.31  500,000 32,696 1462 1.31 100% 2% 2% 1%
n-body  8.65  5,000,000 32,660 1462 8.64 100% 1% 0% 0%
n-body  82.35  50,000,000 36,748 1462 82.24 0% 1% 1% 100%
source secs N mem gz cpu cpu load
n-body  #2 1.50  500,000 32,628 1453 1.52 1% 2% 99% 1%
n-body  #2 10.48  5,000,000 32,716 1453 10.60 1% 100% 1% 1%
n-body  #2 103.92  50,000,000 36,704 1453 105.38 2% 1% 1% 99%
source secs N mem gz cpu cpu load
n-body  #3 0.76  500,000 25,320 1348 0.76 0% 3% 100% 0%
n-body  #3 3.21  5,000,000 31,592 1348 3.21 1% 1% 2% 100%
n-body  #3 27.71  50,000,000 31,576 1348 27.70 1% 0% 100% 0%
source secs N mem gz cpu cpu load
regex-redux  0.52  50,000 19,596 440 0.52 4% 0% 0% 100%
regex-redux  0.87  500,000 43,672 440 0.87 1% 1% 99% 1%
regex-redux  4.44  5,000,000 552,772 440 4.44 37% 27% 1% 37%
source secs N mem gz cpu cpu load
regex-redux  #3 0.53  50,000 19,560 610 0.51 0% 98% 4% 0%
regex-redux  #3 0.97  500,000 48,124 610 0.87 2% 2% 1% 100%
regex-redux  #3 4.36  5,000,000 601,632 610 4.36 1% 1% 1% 100%
source secs N mem gz cpu cpu load
regex-redux  #2 0.51  50,000 19,572 440 0.51 2% 2% 0% 100%
regex-redux  #2 0.87  500,000 43,668 440 0.86 2% 2% 100% 1%
regex-redux  #2 4.44  5,000,000 552,852 440 4.44 1% 1% 37% 64%
source secs N mem gz cpu cpu load
reverse-complement  0.62  250,000 25,628 1131 0.56 5% 78% 20% 0%
reverse-complement  1.33  2,500,000 54,472 1131 1.02 1% 12% 19% 74%
reverse-complement  4.24  25,000,000 243,660 1131 4.50 29% 33% 3% 44%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.61  500 25,204 394 0.61 100% 0% 0% 5%
spectral-norm  #3 5.16  3,000 30,508 394 5.16 0% 100% 1% 0%
spectral-norm  #3 16.19  5,500 30,828 394 16.19 0% 100% 1% 0%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.03  500 32,156 385 1.04 1% 2% 0% 99%
spectral-norm  #2 20.26  3,000 36,688 385 20.25 1% 1% 98% 5%
spectral-norm  #2 66.88  5,500 37,424 385 66.82 1% 1% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.63  500 25,236 383 0.63 0% 100% 2% 0%
spectral-norm  5.17  3,000 32,316 383 5.17 0% 9% 1% 92%
spectral-norm  16.18  5,500 32,360 383 16.18 100% 1% 1% 0%