The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ #2 3.83 156,104 1624 12.00 72% 73% 98% 72%
1.5 C# .NET Core #9 5.58 187,032 2574 18.81 70% 93% 81% 95%
1.6 Rust #7 5.98 137,956 1648 18.00 78% 49% 90% 85%
1.6 Rust #6 6.25 137,712 1671 18.66 67% 83% 51% 100%
1.6 C gcc 6.27 130,024 1506 17.46 68% 47% 65% 100%
1.9 Rust #8 7.15 135,724 1900 19.98 63% 87% 63% 68%
1.9 C++ g++ #3 7.35 165,652 1276 24.12 77% 98% 78% 76%
2.0 Rust #4 7.55 137,724 1749 21.54 77% 49% 92% 70%
2.3 Java  8.66 385,768 1812 26.52 76% 81% 74% 76%
2.4 C# .NET Core #8 9.23 186,900 2593 30.20 96% 71% 77% 83%
2.5 Rust #5 9.56 137,424 1739 24.33 26% 94% 100% 36%
2.5 F# .NET Core #2 9.75 195,992 1926 34.82 95% 92% 87% 84%
2.6 F# .NET Core #5 9.81 195,936 1959 35.13 85% 86% 90% 98%
2.6 Rust #3 9.96 137,464 1661 24.78 25% 91% 44% 90%
3.0 C++ g++ 11.59 756,284 1446 24.51 23% 13% 87% 90%
3.2 Java #6 12.20 380,216 1607 40.70 78% 97% 80% 80%
3.2 Java #3 12.30 381,164 1635 40.98 80% 84% 92% 78%
3.2 Ada 2012 GNAT #2 12.34 258,504 4908 26.09 36% 72% 17% 87%
3.4 C# .NET Core #5 12.95 186,872 2319 36.21 98% 97% 57% 29%
3.4 C# .NET Core #6 12.98 186,476 1603 35.84 97% 56% 75% 50%
3.4 Go #3 13.06 148,316 1722 47.92 90% 89% 95% 93%
3.5 Go #6 13.51 148,336 1590 48.82 88% 91% 96% 88%
4.1 C# .NET Core #7 15.65 722,824 1838 49.86 82% 75% 73% 92%
4.4 Chapel #2 16.75 293,392 1042 63.29 100% 93% 94% 92%
4.5 Lisp SBCL #6 17.37 541,992 2479 62.93 89% 88% 87% 100%
4.8 Rust #2 18.29 137,904 1347 49.29 95% 49% 41% 86%
5.2 Java AOT #6 19.82 590,540 1607 64.87 77% 98% 77% 77%
5.2 F# .NET Core #4 19.88 1,173,076 1509 63.42 75% 91% 81% 73%
5.2 Java AOT #3 20.01 590,544 1635 65.33 76% 100% 75% 76%
5.5 Lisp SBCL 21.21 316,144 2424 65.32 69% 71% 99% 70%
5.6 OCaml #3 21.38 255,464 1833 57.02 81% 39% 93% 54%
5.8 Go #2 22.02 271,440 1560 64.70 63% 91% 65% 75%
6.7 C# .NET Core #4 25.75 704,628 1702 90.01 90% 84% 84% 93%
7.3 F# .NET Core #3 27.92 1,279,352 1111 64.74 87% 40% 73% 33%
7.6 Swift #2 29.06 261,872 1366 112.27 96% 96% 96% 99%
8.0 Swift 30.80 171,280 1231 115.62 93% 92% 93% 98%
9.2 Go 35.30 418,800 986 115.98 90% 84% 84% 71%
9.3 Haskell GHC #2 35.51 604,996 1486 123.30 89% 93% 90% 87%
9.3 Java #5 35.71 226,864 2219 79.78 27% 27% 80% 91%
9.6 Lisp SBCL #4 36.88 152,240 2291 36.85 1% 0% 100% 1%
9.7 Lisp SBCL #5 37.05 152,220 2320 37.01 4% 1% 78% 19%
9.7 Java AOT #5 37.19 180,364 2219 87.24 32% 74% 39% 91%
9.8 Haskell GHC 37.49 497,676 1059 140.05 93% 97% 92% 93%
10 Rust 39.14 152,848 1078 114.23 88% 63% 55% 89%
11 PHP #4 41.39 242,044 1079 133.27 83% 76% 73% 91%
15 C# .NET Core #3 58.19 666,412 1404 173.01 83% 94% 53% 70%
16 Java #4 60.33 192,800 1882 61.28 27% 61% 1% 14%
17 Node js #2 64.11 1,888,124 935 137.70 78% 68% 94% 69%
17 Perl #4 64.22 1,068,544 476 215.42 78% 78% 83% 97%
17 F# .NET Core 64.37 846,560 701 210.49 86% 84% 83% 76%
17 Perl 65.91 1,253,764 652 226.02 87% 90% 88% 84%
17 Node js 66.98 1,097,984 1008 142.29 76% 72% 69% 84%
18 Perl #3 69.99 1,146,448 513 234.72 71% 75% 94% 95%
21 Java AOT #4 79.20 160,312 1882 79.15 1% 0% 100% 0%
21 Python 3 #3 79.79 250,948 1967 5 min 98% 96% 96% 99%
24 C# .NET Core 91.96 729,220 1425 93.29 3% 1% 1% 99%
24 Racket #4 92.96 370,216 885 92.96 0% 0% 100% 0%
25 Fortran Intel 97.26 203,268 2238 97.20 0% 98% 3% 0%
28 Ruby #7 108.90 387,100 880 6 min 84% 85% 96% 84%
30 Truffle Ruby #7 116.29 1,475,716 880 6 min 77% 78% 90% 87%
30 Erlang HiPE #3 116.31 799,336 937 5 min 62% 63% 98% 60%
32 Ruby 121.19 137,452 667 7 min 86% 96% 89% 98%
32 Python 3 123.53 280,516 607 6 min 61% 74% 97% 94%
33 Lisp SBCL #3 124.57 319,228 1290 124.50 100% 0% 1% 0%
33 Lisp SBCL #2 124.76 319,356 1284 124.70 4% 0% 1% 96%
34 Python 3 #8 131.73 456,692 655 6 min 97% 65% 93% 57%
34 C# .NET Core #2 131.92 1,067,432 1018 133.48 54% 19% 19% 11%
36 Erlang HiPE 139.75 3,272,520 936 5 min 61% 83% 71% 56%
43 TypeScript 165.49 462,592 719 167.27 10% 45% 8% 39%
47 Lua #2 181.05 582,424 613 180.06 1% 46% 0% 53%
57 Perl #2 218.34 658,792 359 218.24 0% 100% 1% 0%
64 Racket 245.19 1,317,112 547 245.11 0% 1% 100% 0%
81 Matz's Ruby 5 min 126,652 637 16 min 95% 68% 84% 81%
86 Truffle Ruby #3 5 min 2,135,536 540 20 min 95% 93% 91% 90%
87 Truffle Ruby 5 min 2,151,780 667 20 min 88% 90% 92% 94%
105 Ruby #2 6 min 169,260 420 7 min 52% 7% 4% 48%
106 Ruby #3 6 min 170,132 540 7 min 23% 36% 33% 21%
162 VW Smalltalk #5 10 min 385,072 1320 10 min 14% 28% 0% 58%
217 Truffle Ruby #2 13 min 2,155,788 420 14 min 32% 28% 24% 25%
235 Matz's Ruby #2 14 min 167,896 420 14 min 15% 73% 13% 0%
236 Dart 15 min 453,672 610 15 min 23% 77% 1% 0%
353 Matz's Ruby #3 22 min 168,248 540 22 min 47% 54% 0% 0%
Dart #2 Failed
Hack #4 Timed Out
Java AOT Make Error
OCaml Make Error
OCaml #2 Make Error
Matz's Ruby #7 Failed
JRuby #3 Bad Output
JRuby Bad Output