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.78 156,108 1624 11.44 91% 70% 75% 70%
1.5 Rust #6 5.53 140,784 1671 16.44 83% 51% 67% 99%
1.6 Rust #4 5.86 137,956 1749 17.27 69% 62% 66% 100%
1.8 C gcc 6.67 130,160 1506 19.33 76% 50% 92% 75%
2.0 C++ g++ #3 7.75 165,180 1276 26.02 80% 96% 82% 79%
2.3 Java  8.75 385,056 1812 27.09 85% 72% 70% 85%
2.5 Rust #5 9.57 137,456 1739 24.16 92% 36% 32% 93%
2.6 Rust #3 9.81 137,472 1661 24.41 90% 26% 100% 35%
2.8 F# .NET Core #2 10.43 195,348 1926 36.77 96% 88% 84% 86%
2.8 F# .NET Core #5 10.44 195,944 1959 38.11 95% 92% 92% 86%
3.0 Ada 2005 GNAT #2 11.32 258,596 4908 25.26 30% 65% 42% 87%
3.0 C# .NET Core #8 11.47 189,036 2044 40.36 96% 95% 74% 87%
3.0 C++ g++ 11.52 756,276 1446 24.11 88% 13% 21% 90%
3.3 C# .NET Core #9 12.31 201,500 2283 39.45 78% 74% 97% 73%
3.3 Java #6 12.31 381,104 1607 41.39 79% 82% 95% 81%
3.3 Java #3 12.36 381,676 1635 41.54 78% 89% 90% 80%
3.4 Go #3 12.77 148,052 1722 47.35 87% 97% 94% 95%
3.5 C# .NET Core #5 13.37 181,368 2319 37.80 96% 31% 97% 60%
3.8 Go #6 14.22 147,984 1590 50.89 79% 87% 97% 96%
3.8 C# .NET Core #6 14.25 184,192 1603 38.18 97% 72% 50% 51%
4.4 C# .NET Core #7 16.67 841,468 1838 53.91 92% 76% 76% 82%
4.5 Rust #2 17.10 137,832 1347 47.11 45% 85% 58% 90%
4.7 Lisp SBCL #6 17.62 511,476 2479 63.52 87% 87% 87% 100%
4.8 Chapel 18.31 293,140 1063 66.47 100% 88% 88% 88%
5.1 F# .NET Core #4 19.29 1,198,184 1509 62.95 90% 80% 75% 83%
5.7 OCaml #3 21.63 255,436 1833 57.55 47% 39% 94% 89%
5.8 Swift #2 21.89 233,016 1366 81.36 96% 91% 95% 91%
6.6 Swift 24.92 181,548 1231 83.65 80% 83% 96% 79%
6.8 Lisp SBCL 25.81 504,584 2424 76.90 66% 100% 67% 67%
7.1 C# .NET Core #4 26.77 777,296 1702 94.57 87% 95% 89% 83%
7.1 F# .NET Core #3 26.92 1,244,556 1111 65.24 77% 55% 79% 33%
8.9 Dart #2 33.48 2,043,956 2467 91.87 58% 71% 80% 67%
9.4 Java #5 35.51 228,788 2219 79.18 54% 94% 14% 62%
10 Lisp SBCL #4 37.95 151,844 2291 37.92 100% 1% 0% 0%
10 Rust 39.11 152,768 1078 111.27 100% 48% 51% 87%
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 Hack #4 59.22 293,544 1081 201.51 90% 89% 77% 88%
16 Java #4 60.93 197,284 1882 62.04 39% 61% 1% 1%
16 Node js #2 61.24 1,739,992 935 137.09 80% 75% 95% 71%
16 C# .NET Core #3 61.81 672,520 1404 201.93 74% 97% 80% 77%
17 Perl #4 64.22 1,068,544 476 215.42 78% 78% 83% 97%
17 Perl 65.91 1,253,764 652 226.02 87% 90% 88% 84%
18 Node js 69.42 1,843,020 1008 144.14 86% 69% 78% 67%
19 Perl #3 69.99 1,146,448 513 234.72 71% 75% 94% 95%
19 F# .NET Core 72.69 850,760 701 228.94 78% 78% 82% 78%
21 Python 3 #3 77.65 182,700 1967 5 min 97% 99% 97% 98%
23 Racket #4 88.05 367,936 885 88.05 0% 0% 0% 100%
25 Ruby #7 95.27 381,212 858 5 min 97% 86% 86% 91%
26 C# .NET Core 98.44 724,320 1425 99.77 1% 98% 2% 1%
29 Ruby 108.47 131,572 637 6 min 95% 92% 88% 96%
30 Erlang HiPE #3 113.83 798,548 937 5 min 83% 67% 69% 70%
35 Python 3 131.60 309,992 607 6 min 94% 72% 76% 74%
35 Python 3 #8 133.80 496,140 655 6 min 92% 56% 96% 57%
36 C# .NET Core #2 137.99 1,057,704 1018 141.61 24% 28% 29% 23%
37 Lisp SBCL #2 139.93 506,852 1284 139.88 0% 1% 0% 100%
37 Lisp SBCL #3 141.07 509,312 1290 141.02 0% 100% 1% 0%
38 Erlang HiPE 143.45 3,270,888 936 5 min 73% 59% 62% 56%
49 Lua #2 184.25 513,992 613 183.19 81% 1% 1% 20%
58 Perl #2 218.34 658,792 359 218.24 0% 100% 1% 0%
64 JRuby #3 243.38 1,151,568 540 14 min 92% 87% 89% 89%
64 Racket 243.41 1,313,516 547 243.38 94% 0% 1% 6%
66 JRuby 248.11 1,151,636 637 15 min 89% 90% 92% 94%
82 Matz's Ruby 5 min 126,652 637 16 min 95% 68% 84% 81%
82 Dart 5 min 411,572 610 5 min 10% 45% 47% 1%
91 Truffle Ruby #3 5 min 1,121,452 540 20 min 91% 90% 92% 93%
101 Ruby #2 6 min 162,068 420 6 min 0% 1% 100% 0%
105 Ruby #3 6 min 159,688 540 6 min 50% 50% 1% 0%
173 VW Smalltalk #5 10 min 387,932 1303 10 min 39% 63% 34% 21%
221 Truffle Ruby #2 13 min 1,131,444 420 15 min 32% 27% 25% 24%
238 Matz's Ruby #2 14 min 167,896 420 14 min 15% 73% 13% 0%
357 Matz's Ruby #3 22 min 168,248 540 22 min 47% 54% 0% 0%
Fortran Intel Failed
Haskell GHC #2 Make Error
OCaml Make Error
OCaml #2 Make Error
Matz's Ruby #7 Failed
Truffle Ruby #7 Failed
Truffle Ruby Failed
Rust #7 Make Error
TypeScript Failed