The Computer Language
Benchmarks Game

all Lua programs & measurements

Lua 5.4.2 Copyright (C) 1994-2020 Lua.org, PUC-Rio

source secs N mem gz cpu cpu load
binary-trees  #2 0.18  7 8 412 0.01 16% 0% 22% 42%
binary-trees  #2 0.63  14 10,440 412 0.63 5% 3% 0% 100%
binary-trees  #2 147.61  21 947,952 412 147.51 0% 1% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #3 0.20  7 8 684 0.03 5% 40% 0% 26%
binary-trees  #3 0.38  14 9,724 684 0.75 21% 61% 63% 58%
binary-trees  #3 82.85  21 923,584 684 164.61 44% 50% 87% 20%
source secs N mem gz cpu cpu load
binary-trees  #4 0.27  7 1,296 664 0.03 19% 0% 33% 41%
binary-trees  #4 0.23  14 9,668 664 0.78 86% 80% 83% 95%
binary-trees  #4 48.15  21 923,628 664 178.40 97% 92% 91% 91%
source secs N mem gz cpu cpu load
fannkuch-redux  3.23  10 1,300 462 3.02 1% 2% 2% 96%
fannkuch-redux  43.44  11 1,236 462 43.43 0% 1% 1% 100%
fannkuch-redux  526.61  12 1,296 462 526.52 0% 0% 1% 100%
source secs N mem gz cpu cpu load
fasta  #2 0.43  250,000 2,616 1061 0.27 0% 9% 12% 74%
fasta  #2 2.63  2,500,000 2,872 1061 2.63 0% 0% 100% 1%
fasta  #2 25.72  25,000,000 2,840 1061 25.71 100% 0% 0% 0%
source secs N mem gz cpu cpu load
fasta  #3 0.44  250,000 2,456 1061 0.27 64% 5% 0% 18%
fasta  #3 2.62  2,500,000 2,704 1061 2.62 100% 2% 5% 0%
fasta  #3 25.79  25,000,000 2,840 1061 25.78 0% 100% 1% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.54  250,000 18,964 613 1.32 3% 5% 1% 92%
k-nucleotide  #2 11.81  2,500,000 75,736 613 11.73 0% 99% 1% 1%
k-nucleotide  #2 114.82  25,000,000 596,536 613 114.79 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.69  1,000 2,548 623 1.56 48% 51% 83% 69%
mandelbrot  #6 7.20  4,000 6,960 623 24.68 78% 81% 100% 84%
mandelbrot  #6 113.06  16,000 18,572 623 393.73 86% 100% 77% 86%
source secs N mem gz cpu cpu load
mandelbrot  1.18  1,000 1,236 359 0.93 87% 0% 4% 13%
mandelbrot  14.78  4,000 1,236 359 14.78 0% 0% 0% 100%
mandelbrot  241.77  16,000 2,564 359 241.72 0% 0% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 1.16  1,000 1,236 358 0.93 95% 0% 1% 3%
mandelbrot  #3 14.79  4,000 1,240 358 14.78 100% 1% 0% 0%
mandelbrot  #3 236.48  16,000 2,584 358 236.41 100% 0% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #2 1.67  1,000 1,296 367 1.46 92% 0% 2% 6%
mandelbrot  #2 23.22  4,000 1,296 367 23.22 0% 0% 1% 100%
mandelbrot  #2 371.62  16,000 1,236 367 371.55 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  2.62  500,000 1,172 1201 2.37 96% 2% 0% 2%
n-body  22.98  5,000,000 1,300 1201 22.98 100% 0% 0% 0%
n-body  224.00  50,000,000 1,236 1201 223.95 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #4 2.44  500,000 1,296 1305 2.19 0% 1% 5% 93%
n-body  #4 21.29  5,000,000 1,300 1305 21.29 1% 0% 100% 2%
n-body  #4 208.01  50,000,000 1,240 1305 207.97 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #2 2.32  500,000 1,172 1193 2.10 93% 0% 4% 6%
n-body  #2 21.86  5,000,000 1,300 1193 21.85 0% 0% 0% 100%
n-body  #2 214.72  50,000,000 1,240 1193 214.68 1% 1% 1% 100%
pidigits  #7 Failed  2,000
pidigits  #5 Failed  2,000
pidigits  Failed  2,000
source secs N mem gz cpu cpu load
regex-redux  0.30  50,000 1,236 482 0.04 30% 37% 25% 23%
regex-redux  0.30  500,000 33,148 482 0.26 3% 6% 6% 86%
regex-redux  2.57  5,000,000 326,464 482 2.56 1% 100% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.32  250,000 6,400 752 0.11 0% 9% 19% 81%
reverse-complement  #5 41.53  100,000,000 2,162,968 752 41.50 100% 0% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #4 0.39  250,000 6,424 594 0.15 37% 0% 10% 54%
reverse-complement  #4 53.13  100,000,000 634,232 594 53.10 0% 100% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.36  250,000 7,460 553 0.12 0% 0% 25% 86%
reverse-complement  #2 40.62  100,000,000 2,654,732 553 40.60 0% 100% 1% 0%
source secs N mem gz cpu cpu load
spectral-norm  0.90  500 1,172 329 0.66 1% 4% 6% 81%
spectral-norm  29.16  3,000 2,444 329 29.15 1% 0% 100% 2%
spectral-norm  79.73  5,500 2,780 329 79.71 0% 0% 100% 0%