The Computer Language
Benchmarks Game

all Rust programs & measurements

rustc 1.23.0 (766bd11c8 2018-01-01)

source secs N mem gz cpu cpu load
binary-trees   7 ? 751 0.00
binary-trees  0.05  14 ? 751 0.10 40% 67% 60% 40%
binary-trees  5.93  21 131,032 751 20.77 86% 85% 98% 83%
source secs N mem gz cpu cpu load
binary-trees  #2 0.02  7 ? 721 ? 33% 100% 0% 33%
binary-trees  #2 0.03  14 ? 721 0.08 100% 75% 100% 100%
binary-trees  #2 4.02  21 167,776 721 14.63 89% 99% 91% 89%
source secs N mem gz cpu cpu load
chameneos-redux  1.07  60,000 2,048 1455 1.96 45% 55% 45% 30%
chameneos-redux  9.70  600,000 1,980 1455 19.23 47% 53% 63% 34%
chameneos-redux  97.30  6,000,000 2,012 1455 201.71 63% 38% 40% 68%
source secs N mem gz cpu cpu load
chameneos-redux  #2 0.02  60,000 ? 2890 0.06 50% 100% 100% 100%
chameneos-redux  #2 0.17  600,000 ? 2890 0.62 94% 94% 94% 94%
chameneos-redux  #2 1.98  6,000,000 2,192 2890 7.72 99% 98% 99% 97%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.08  10 ? 1020 0.25 67% 86% 86% 88%
fannkuch-redux  #3 0.79  11 1,700 1020 3.06 99% 99% 93% 99%
fannkuch-redux  #3 10.59  12 1,776 1020 41.71 100% 99% 100% 95%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.09  10 ? 1191 0.31 88% 89% 88% 100%
fannkuch-redux  #2 0.97  11 1,716 1191 3.76 99% 95% 98% 98%
fannkuch-redux  #2 12.86  12 1,912 1191 50.28 100% 100% 94% 98%
source secs N mem gz cpu cpu load
fasta  #2 0.04  250,000 ? 1906 0.08 67% 60% 75% 0%
fasta  #2 0.17  2,500,000 ? 1906 0.51 75% 75% 75% 82%
fasta  #2 1.47  25,000,000 2,988 1906 4.55 83% 76% 76% 76%
source secs N mem gz cpu cpu load
fasta  0.14  250,000 ? 1237 0.14 0% 0% 100% 0%
fasta  1.40  2,500,000 1,600 1237 1.37 4% 99% 0% 0%
fasta  4.85  25,000,000 1,716 1237 4.84 0% 0% 100% 1%
source secs N mem gz cpu cpu load
fasta  #3 0.04  250,000 ? 1233 0.04 0% 100% 0% 0%
fasta  #3 0.41  2,500,000 1,960 1233 0.40 0% 100% 0% 0%
fasta  #3 3.58  25,000,000 2,936 1233 3.58 1% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #4 0.08  250,000 ? 939 0.08 0% 13% 100% 0%
fasta  #4 0.74  2,500,000 7,372 939 0.74 0% 100% 1% 0%
fasta  #4 6.99  25,000,000 124,364 939 6.98 100% 0% 0% 1%
source secs N mem gz cpu cpu load
k-nucleotide  0.49  250,000 31,080 1078 1.27 60% 43% 80% 81%
k-nucleotide  4.31  2,500,000 42,696 1078 11.80 63% 99% 49% 64%
k-nucleotide  41.42  25,000,000 152,776 1078 115.83 66% 49% 84% 83%
source secs N mem gz cpu cpu load
k-nucleotide  #6 0.13  250,000 ? 1668 0.22 100% 31% 54% 31%
k-nucleotide  #6 0.94  2,500,000 28,064 1668 1.80 57% 56% 38% 72%
k-nucleotide  #6 5.20  25,000,000 137,964 1668 15.78 84% 83% 69% 69%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.08  250,000 ? 1748 0.20 78% 88% 50% 25%
k-nucleotide  #4 0.91  2,500,000 27,812 1748 2.35 98% 40% 31% 93%
k-nucleotide  #4 5.06  25,000,000 137,864 1748 15.66 54% 97% 71% 89%
source secs N mem gz cpu cpu load
k-nucleotide  #5 0.16  250,000 ? 1739 0.36 100% 19% 27% 94%
k-nucleotide  #5 1.04  2,500,000 27,484 1739 2.57 98% 91% 35% 27%
k-nucleotide  #5 9.37  25,000,000 137,428 1739 24.11 94% 100% 38% 27%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.24  250,000 1,076 1347 0.59 78% 50% 23% 96%
k-nucleotide  #2 1.91  2,500,000 27,868 1347 5.04 88% 87% 38% 52%
k-nucleotide  #2 17.22  25,000,000 137,832 1347 48.24 86% 87% 42% 65%
source secs N mem gz cpu cpu load
k-nucleotide  #7 0.09  250,000 ? 1647 0.21 33% 89% 44% 75%
k-nucleotide  #7 0.58  2,500,000 28,012 1647 1.67 83% 79% 63% 64%
k-nucleotide  #7 5.24  25,000,000 138,020 1647 15.86 100% 83% 69% 53%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.16  250,000 ? 1661 0.36 31% 87% 81% 25%
k-nucleotide  #3 1.04  2,500,000 27,448 1661 2.54 91% 25% 87% 45%
k-nucleotide  #3 9.64  25,000,000 137,456 1661 24.35 100% 91% 26% 37%
mandelbrot  #4 Make Error  1,000
source secs N mem gz cpu cpu load
mandelbrot  #6 0.02  1,000 ? 1332 0.04 50% 67% 50% 33%
mandelbrot  #6 0.16  4,000 ? 1332 0.53 82% 69% 94% 88%
mandelbrot  #6 2.02  16,000 33,256 1332 7.99 99% 99% 100% 99%
source secs N mem gz cpu cpu load
mandelbrot  0.04  1,000 ? 868 0.10 75% 60% 67% 67%
mandelbrot  0.34  4,000 1,608 868 1.25 94% 91% 94% 97%
mandelbrot  4.87  16,000 40,468 868 19.22 97% 99% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.02  1,000 ? 1007 0.05 50% 100% 100% 50%
mandelbrot  #3 0.14  4,000 ? 1007 0.54 93% 93% 94% 100%
mandelbrot  #3 1.97  16,000 13,340 1007 7.86 99% 99% 100% 100%
source secs N mem gz cpu cpu load
meteor-contest  0.05  2,098 ? 2238 0.13 50% 80% 50% 40%
source secs N mem gz cpu cpu load
meteor-contest  #2 0.03  2,098 ? 3848 0.09 100% 75% 75% 50%
source secs N mem gz cpu cpu load
n-body  #3 0.15  500,000 ? 1540 0.15 6% 0% 100% 0%
n-body  #3 1.50  5,000,000 1,696 1540 1.49 99% 0% 1% 1%
n-body  #3 14.91  50,000,000 1,748 1540 14.90 0% 0% 100% 1%
source secs N mem gz cpu cpu load
n-body  #4 0.18  500,000 ? 1803 0.18 0% 100% 0% 0%
n-body  #4 1.80  5,000,000 1,692 1803 1.80 0% 1% 100% 1%
n-body  #4 17.94  50,000,000 1,756 1803 17.94 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.18  500,000 ? 1805 0.18 0% 0% 0% 100%
n-body  #2 1.71  5,000,000 1,660 1805 1.71 0% 100% 1% 1%
n-body  #2 17.03  50,000,000 1,708 1805 17.02 1% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  0.14  500,000 ? 1480 0.14 0% 100% 0% 0%
n-body  1.36  5,000,000 1,772 1480 1.36 1% 0% 1% 100%
n-body  13.57  50,000,000 1,768 1480 13.57 100% 0% 0% 1%
source secs N mem gz cpu cpu load
pidigits  0.06  2,000 ? 1420 0.06 0% 14% 0% 100%
pidigits  0.60  6,000 3,500 1420 0.60 95% 0% 0% 7%
pidigits  1.74  10,000 4,556 1420 1.74 0% 1% 100% 3%
source secs N mem gz cpu cpu load
pidigits  #2 0.07  2,000 ? 1306 0.07 0% 0% 100% 0%
pidigits  #2 0.60  6,000 3,264 1306 0.60 2% 2% 98% 2%
pidigits  #2 1.74  10,000 4,564 1306 1.74 1% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #3 0.06  2,000 ? 1366 0.06 0% 0% 0% 100%
pidigits  #3 0.59  6,000 3,484 1366 0.59 7% 0% 2% 100%
pidigits  #3 1.74  10,000 4,612 1366 1.74 2% 0% 0% 99%
source secs N mem gz cpu cpu load
regex-redux  #2 0.05  50,000 ? 701 0.06 29% 50% 50% 0%
regex-redux  #2 0.42  500,000 17,860 701 0.46 95% 10% 12% 17%
regex-redux  #2 3.11  5,000,000 167,860 701 4.46 15% 15% 100% 15%
source secs N mem gz cpu cpu load
regex-redux  0.05  50,000 ? 804 0.06 40% 20% 25% 50%
regex-redux  0.31  500,000 1,188 804 0.46 13% 100% 17% 20%
regex-redux  3.05  5,000,000 188,644 804 4.48 31% 17% 85% 16%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.02  250,000 ? 1382 0.02 50% 67% 50% 0%
reverse-complement  #3 0.10  2,500,000 ? 1382 0.13 18% 56% 11% 60%
reverse-complement  #3 0.55  25,000,000 250,656 1382 0.83 19% 24% 96% 20%
source secs N mem gz cpu cpu load
reverse-complement  0.02  250,000 ? 1871 0.02 50% 0% 100% 0%
reverse-complement  0.13  2,500,000 ? 1871 0.15 7% 23% 85% 14%
reverse-complement  0.80  25,000,000 250,828 1871 1.07 20% 76% 25% 14%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.06  250,000 ? 1376 ? 0% 0% 0% 86%
reverse-complement  #2 0.44  2,500,000 ? 1376 ? 100% 2% 2% 5%
reverse-complement  #2 0.37  25,000,000 250,784 1376 0.66 29% 29% 100% 28%
source secs N mem gz cpu cpu load
spectral-norm  #4 0.03  500 ? 817 0.08 75% 100% 0% 100%
spectral-norm  #4 0.68  3,000 2,676 817 2.69 100% 99% 99% 99%
spectral-norm  #4 2.27  5,500 2,624 817 9.00 100% 99% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.05  500 ? 1053 0.10 40% 60% 50% 60%
spectral-norm  #3 0.81  3,000 2,784 1053 2.80 93% 83% 81% 90%
spectral-norm  #3 2.44  5,500 2,876 1053 9.23 93% 95% 98% 97%
source secs N mem gz cpu cpu load
spectral-norm  #2 0.06  500 ? 1110 0.15 63% 71% 57% 67%
spectral-norm  #2 1.48  3,000 2,068 1110 4.75 74% 80% 83% 85%
spectral-norm  #2 3.99  5,500 2,844 1110 15.71 99% 98% 98% 99%
source secs N mem gz cpu cpu load
spectral-norm  0.06  500 ? 1254 0.16 67% 67% 60% 67%
spectral-norm  1.37  3,000 2,012 1254 4.72 93% 82% 85% 86%
spectral-norm  4.05  5,500 2,848 1254 15.71 97% 97% 97% 98%
source secs N mem gz cpu cpu load
thread-ring  2.83  500,000 6,852 473 3.64 61% 1% 1% 63%
thread-ring  28.08  5,000,000 6,968 473 35.99 13% 48% 48% 13%
thread-ring  280.37  50,000,000 6,928 473 358.35 27% 32% 33% 27%
source secs N mem gz cpu cpu load
thread-ring  #2 1.38  500,000 6,784 940 3.36 56% 65% 63% 53%
thread-ring  #2 12.74  5,000,000 6,636 940 29.15 61% 52% 51% 61%
thread-ring  #2 121.41  50,000,000 6,824 940 246.43 83% 19% 19% 83%