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.66 155,956 1624 11.16 70% 98% 70% 68%
1.4 C gcc 5.07 130,008 1506 15.25 88% 84% 58% 73%
1.5 Rust #4 5.32 138,012 1749 16.15 88% 98% 68% 52%
1.5 Rust #8 5.47 135,832 1900 15.21 46% 76% 74% 83%
1.5 Rust #7 5.59 138,028 1648 16.45 78% 85% 49% 84%
1.5 Rust #6 5.64 137,816 1671 16.56 64% 48% 84% 98%
2.1 C++ g++ #3 7.52 165,624 1276 24.68 77% 79% 79% 95%
2.4 Java  8.66 384,756 1812 26.91 69% 88% 81% 75%
2.5 C# .NET Core #8 9.23 185,464 2593 30.46 98% 72% 79% 82%
2.6 F# .NET Core #5 9.62 195,496 1959 34.93 93% 86% 95% 90%
2.6 Rust #5 9.63 137,476 1739 24.35 93% 33% 93% 36%
2.6 F# .NET Core #2 9.64 195,528 1926 35.35 95% 97% 89% 88%
2.9 Rust #3 10.52 137,460 1661 25.83 34% 81% 41% 91%
3.1 C# .NET Core #9 11.32 201,948 2283 36.41 92% 75% 80% 78%
3.2 C++ g++ 11.71 756,224 1446 24.58 14% 23% 89% 85%
3.3 Ada 2005 GNAT #2 11.99 258,468 4908 26.17 37% 18% 87% 77%
3.4 Java #3 12.34 381,700 1635 41.42 88% 80% 80% 89%
3.4 Java #6 12.40 381,460 1607 41.74 98% 80% 79% 80%
3.5 Go #3 12.77 148,052 1722 47.35 87% 97% 94% 95%
3.6 C# .NET Core #6 13.22 185,772 1603 35.89 73% 98% 53% 51%
3.6 C# .NET Core #5 13.26 187,604 2319 36.23 35% 97% 48% 94%
3.9 Go #6 14.22 147,984 1590 50.89 79% 87% 97% 96%
4.3 C# .NET Core #7 15.73 689,920 1838 50.45 84% 83% 82% 74%
4.6 Rust #2 16.89 137,880 1347 46.88 100% 51% 85% 42%
4.8 Lisp SBCL #6 17.62 511,476 2479 63.52 87% 87% 87% 100%
4.8 Chapel 17.73 293,524 1063 65.72 100% 90% 91% 91%
5.4 Java AOT #6 19.82 590,540 1607 64.87 77% 98% 77% 77%
5.5 Java AOT #3 20.01 590,544 1635 65.33 76% 100% 75% 76%
5.5 F# .NET Core #4 20.06 1,150,604 1509 63.17 75% 76% 86% 78%
6.1 OCaml #3 22.34 255,476 1833 57.35 77% 47% 94% 40%
7.0 C# .NET Core #4 25.64 723,132 1702 89.68 89% 89% 85% 89%
7.0 Lisp SBCL 25.81 504,584 2424 76.90 66% 100% 67% 67%
7.3 C# .NET Core #3 26.86 678,300 1404 89.32 96% 84% 81% 74%
7.6 F# .NET Core #3 27.94 1,286,732 1111 66.28 54% 51% 79% 54%
8.5 Dart #2 31.22 2,193,848 2467 84.67 61% 75% 84% 52%
8.6 Swift 31.59 170,184 1231 119.29 93% 93% 99% 93%
10 Java AOT #5 37.19 180,364 2219 87.24 32% 74% 39% 91%
10 Lisp SBCL #4 37.95 151,844 2291 37.92 100% 1% 0% 0%
11 Rust 38.65 159,608 1078 111.53 88% 61% 89% 52%
11 Java #5 39.30 242,484 2219 87.02 36% 51% 67% 69%
11 Haskell GHC 40.22 523,084 1059 141.80 91% 88% 88% 87%
11 Lisp SBCL #5 40.47 151,844 2320 40.44 100% 1% 0% 0%
11 PHP #4 41.39 242,044 1079 133.27 83% 76% 73% 91%
12 Go #2 45.38 265,288 1560 131.57 92% 53% 96% 49%
14 Go 52.18 391,312 986 176.10 76% 95% 82% 86%
16 Java #4 60.09 197,392 1882 61.21 1% 1% 24% 77%
17 Node js #2 63.04 1,864,112 935 139.07 73% 78% 71% 95%
18 Perl #4 64.22 1,068,544 476 215.42 78% 78% 83% 97%
18 F# .NET Core 64.59 900,344 701 210.04 90% 83% 80% 73%
18 Node js 65.31 1,292,188 1008 141.77 66% 68% 91% 80%
18 Perl 65.91 1,253,764 652 226.02 87% 90% 88% 84%
19 Perl #3 69.99 1,146,448 513 234.72 71% 75% 94% 95%
22 Java AOT #4 79.20 160,312 1882 79.15 1% 0% 100% 0%
22 Python 3 #3 79.61 241,140 2054 5 min 98% 97% 97% 100%
24 Racket #4 88.05 367,936 885 88.05 0% 0% 0% 100%
25 C# .NET Core 91.70 687,680 1425 92.59 2% 99% 2% 1%
26 Fortran Intel 95.85 203,196 2238 95.80 0% 0% 1% 100%
29 Ruby #7 104.85 383,724 880 6 min 96% 88% 99% 86%
31 Erlang HiPE #3 113.83 798,548 937 5 min 83% 67% 69% 70%
32 Truffle Ruby #7 116.29 1,475,716 880 6 min 77% 78% 90% 87%
32 Ruby 117.36 135,312 667 7 min 88% 96% 100% 87%
33 Python 3 121.56 281,104 754 6 min 74% 98% 61% 96%
36 Python 3 #8 130.73 455,620 791 6 min 96% 96% 54% 63%
37 C# .NET Core #2 134.06 1,080,396 1018 135.54 53% 21% 20% 11%
38 Lisp SBCL #2 139.93 506,852 1284 139.88 0% 1% 0% 100%
39 Lisp SBCL #3 141.07 509,312 1290 141.02 0% 100% 1% 0%
39 Erlang HiPE 143.45 3,270,888 936 5 min 73% 59% 62% 56%
50 Lua #2 184.25 513,992 613 183.19 81% 1% 1% 20%
60 Perl #2 218.34 658,792 359 218.24 0% 100% 1% 0%
66 Racket 243.41 1,313,516 547 243.38 94% 0% 1% 6%
85 Matz's Ruby 5 min 126,652 637 16 min 95% 68% 84% 81%
90 Truffle Ruby #3 5 min 2,135,536 540 20 min 95% 93% 91% 90%
91 Truffle Ruby 5 min 2,151,780 667 20 min 88% 90% 92% 94%
95 Ruby #2 5 min 151,620 420 6 min 95% 6% 11% 2%
98 Ruby #3 5 min 164,792 540 6 min 31% 30% 24% 28%
169 VW Smalltalk #5 10 min 385,072 1320 10 min 14% 28% 0% 58%
227 Truffle Ruby #2 13 min 2,155,788 420 14 min 32% 28% 24% 25%
246 Matz's Ruby #2 14 min 167,896 420 14 min 15% 73% 13% 0%
269 Dart 16 min 396,192 610 16 min 95% 1% 1% 5%
369 Matz's Ruby #3 22 min 168,248 540 22 min 47% 54% 0% 0%
Haskell GHC #2 Make Error
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
TypeScript Failed
Swift #2 Failed