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.34 138,504 1749 17.16 87% 100% 78% 58%
1.5 C# .NET Core #9 5.58 187,032 2574 18.81 70% 93% 81% 95%
1.5 Rust #7 5.58 141,944 1648 17.39 61% 83% 74% 95%
1.8 Rust #6 6.42 137,608 1671 18.42 83% 86% 67% 64%
1.9 Rust #8 6.86 135,696 1900 19.07 59% 86% 49% 87%
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 186,900 2593 30.20 96% 71% 77% 83%
2.7 F# .NET Core #2 9.75 195,992 1926 34.82 95% 92% 87% 84%
2.7 F# .NET Core #5 9.81 195,936 1959 35.13 85% 86% 90% 98%
2.8 Rust #5 10.24 137,392 1739 25.65 89% 35% 94% 34%
2.9 Rust #3 10.52 137,344 1661 25.86 41% 32% 91% 84%
3.2 C++ g++ 11.71 756,224 1446 24.58 14% 23% 89% 85%
3.3 Ada 2012 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 C# .NET Core #5 12.95 186,872 2319 36.21 98% 97% 57% 29%
3.5 C# .NET Core #6 12.98 186,476 1603 35.84 97% 56% 75% 50%
4.2 Go #3 15.36 148,056 1722 54.61 77% 96% 95% 88%
4.3 C# .NET Core #7 15.65 722,824 1838 49.86 82% 75% 73% 92%
4.3 Go #6 15.65 148,352 1590 56.95 94% 82% 97% 92%
4.7 Rust #2 17.35 137,752 1347 48.62 53% 62% 82% 85%
4.8 Lisp SBCL #6 17.62 511,476 2479 63.52 87% 87% 87% 100%
5.2 Chapel #2 19.04 296,576 1042 71.89 100% 93% 93% 93%
5.4 Java AOT #6 19.82 590,540 1607 64.87 77% 98% 77% 77%
5.4 F# .NET Core #4 19.88 1,173,076 1509 63.42 75% 91% 81% 73%
5.5 Java AOT #3 20.01 590,544 1635 65.33 76% 100% 75% 76%
6.1 OCaml #3 22.34 255,476 1833 57.35 77% 47% 94% 40%
7.0 C# .NET Core #4 25.75 704,628 1702 90.01 90% 84% 84% 93%
7.0 Lisp SBCL 25.81 504,584 2424 76.90 66% 100% 67% 67%
7.6 F# .NET Core #3 27.92 1,279,352 1111 64.74 87% 40% 73% 33%
7.8 Swift #2 28.42 261,568 1366 109.98 96% 96% 96% 99%
8.1 Swift 29.49 174,976 1231 111.24 99% 93% 93% 93%
8.1 Go #2 29.57 276,160 1560 85.58 86% 79% 86% 39%
8.6 Go 31.67 418,660 986 98.92 61% 98% 79% 75%
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%
10 Rust 38.43 153,164 1078 115.14 56% 87% 68% 89%
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%
16 C# .NET Core #3 58.19 666,412 1404 173.01 83% 94% 53% 70%
16 Java #4 60.09 197,392 1882 61.21 1% 1% 24% 77%
17 Node js #2 62.94 1,858,960 935 133.33 84% 76% 78% 70%
18 Perl #4 64.22 1,068,544 476 215.42 78% 78% 83% 97%
18 F# .NET Core 64.37 846,560 701 210.49 86% 84% 83% 76%
18 Node js 65.22 1,076,832 1008 139.41 80% 64% 94% 63%
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.79 250,948 1967 5 min 98% 96% 96% 99%
24 Racket #4 88.05 367,936 885 88.05 0% 0% 0% 100%
25 C# .NET Core 91.96 729,220 1425 93.29 3% 1% 1% 99%
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%
32 Truffle Ruby #7 116.29 1,475,716 880 6 min 77% 78% 90% 87%
32 Erlang HiPE #3 116.31 799,336 937 5 min 62% 63% 98% 60%
32 Ruby 117.36 135,312 667 7 min 88% 96% 100% 87%
34 Python 3 123.53 280,516 607 6 min 61% 74% 97% 94%
36 Python 3 #8 131.73 456,692 655 6 min 97% 65% 93% 57%
36 C# .NET Core #2 131.92 1,067,432 1018 133.48 54% 19% 19% 11%
38 Erlang HiPE 139.75 3,272,520 936 5 min 61% 83% 71% 56%
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%
44 TypeScript 162.86 447,284 719 163.61 53% 1% 31% 16%
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%
270 Dart 16 min 455,420 610 16 min 2% 9% 19% 71%
369 Matz's Ruby #3 22 min 168,248 540 22 min 47% 54% 0% 0%
Chapel Make Error
Dart #2 Failed
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