The Computer Language
Benchmarks Game

all Lua programs & measurements

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

source secs N mem gz cpu cpu load
binary-trees  #2 0.12  7 8 412 0.01 0% 36% 45% 0%
binary-trees  #2 0.65  14 10,720 412 0.64 0% 2% 98% 3%
binary-trees  #2 149.02  21 938,152 412 148.81 0% 0% 100% 0%
source secs N mem gz cpu cpu load
binary-trees  #3 0.17  7 1,288 684 0.02 27% 6% 44% 24%
binary-trees  #3 0.39  14 9,308 684 0.76 54% 62% 22% 58%
binary-trees  #3 85.09  21 884,384 684 169.09 89% 18% 43% 50%
source secs N mem gz cpu cpu load
binary-trees  #4 0.15  7 8 664 0.02 20% 43% 7% 40%
binary-trees  #4 0.24  14 9,364 664 0.80 83% 92% 88% 79%
binary-trees  #4 50.85  21 884,352 664 188.55 92% 97% 91% 92%
source secs N mem gz cpu cpu load
fannkuch-redux  4.01  10 1,348 462 3.88 0% 1% 1% 99%
fannkuch-redux  55.86  11 1,232 462 55.79 1% 67% 34% 3%
fannkuch-redux  719.15  12 1,224 462 719.02 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #3 0.46  250,000 2,392 1061 0.29 0% 11% 11% 87%
fasta  #3 2.88  2,500,000 2,724 1061 2.88 0% 0% 1% 100%
fasta  #3 28.31  25,000,000 2,840 1061 28.30 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  #2 0.43  250,000 2,468 1061 0.29 0% 0% 10% 86%
fasta  #2 2.87  2,500,000 2,704 1061 2.87 0% 0% 1% 100%
fasta  #2 28.32  25,000,000 2,788 1061 28.31 0% 100% 0% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.53  250,000 24,360 613 1.36 4% 3% 1% 96%
k-nucleotide  #2 12.23  2,500,000 75,688 613 12.12 0% 99% 0% 2%
k-nucleotide  #2 119.24  25,000,000 596,500 613 119.21 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #2 1.26  1,000 1,228 367 1.12 2% 5% 0% 93%
mandelbrot  #2 17.87  4,000 1,292 367 17.87 0% 100% 0% 0%
mandelbrot  #2 286.66  16,000 1,160 367 286.54 0% 47% 54% 0%
source secs N mem gz cpu cpu load
mandelbrot  #3 1.10  1,000 1,288 358 0.97 0% 3% 94% 2%
mandelbrot  #3 15.61  4,000 1,228 358 15.60 0% 1% 100% 1%
mandelbrot  #3 245.61  16,000 2,476 358 245.46 0% 0% 100% 0%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.57  1,000 2,376 623 1.20 86% 46% 63% 65%
mandelbrot  #6 5.60  4,000 6,712 623 19.06 77% 81% 83% 100%
mandelbrot  #6 86.29  16,000 18,496 623 304.07 86% 88% 100% 80%
source secs N mem gz cpu cpu load
mandelbrot  1.19  1,000 1,288 359 0.96 3% 4% 7% 87%
mandelbrot  15.88  4,000 1,232 359 15.86 1% 0% 100% 1%
mandelbrot  245.64  16,000 2,440 359 245.50 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #4 2.38  500,000 1,288 1305 2.24 0% 0% 1% 98%
n-body  #4 22.73  5,000,000 1,288 1305 22.72 0% 0% 1% 100%
n-body  #4 220.07  50,000,000 1,224 1305 220.03 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  2.59  500,000 1,232 1201 2.46 0% 0% 2% 98%
n-body  24.80  5,000,000 1,292 1201 24.80 0% 0% 1% 100%
n-body  238.34  50,000,000 1,232 1201 238.30 0% 0% 1% 100%
source secs N mem gz cpu cpu load
n-body  #2 2.44  500,000 1,220 1193 2.28 94% 0% 2% 3%
n-body  #2 21.30  5,000,000 1,292 1193 21.29 0% 0% 0% 100%
n-body  #2 217.77  50,000,000 1,288 1193 217.73 0% 0% 0% 100%
pidigits  #5 Failed  2,000
pidigits  Failed  2,000
pidigits  #7 Failed  2,000
regex-redux  Failed  50,000
source secs N mem gz cpu cpu load
reverse-complement  #4 0.32  250,000 6,360 594 0.15 10% 25% 3% 61%
reverse-complement  #4 55.41  100,000,000 634,128 594 55.39 0% 100% 0% 0%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.27  250,000 6,308 752 0.12 15% 66% 4% 11%
reverse-complement  #5 44.41  100,000,000 2,165,032 752 44.36 0% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.32  250,000 5,940 553 0.14 72% 0% 9% 10%
reverse-complement  #2 46.25  100,000,000 2,654,696 553 46.23 100% 0% 0% 0%
source secs N mem gz cpu cpu load
spectral-norm  1.19  500 1,224 329 0.74 27% 12% 76% 52%
spectral-norm  25.96  3,000 2,440 329 25.95 0% 0% 100% 0%
spectral-norm  87.25  5,500 2,736 329 87.20 0% 0% 100% 0%