The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C gcc 6.46 130,076 1500 17.06 51% 37% 89% 88%
1.1 C++ g++ #3 7.15 164,080 1252 24.21 82% 83% 80% 96%
1.3 Java  8.10 469,624 1802 25.75 97% 77% 76% 71%
1.9 Ada 2005 GNAT #2 11.98 278,036 4865 25.87 87% 48% 61% 22%
2.0 Java #6 12.87 462,488 1602 44.44 98% 81% 85% 82%
2.1 Java #3 13.29 464,304 1630 46.45 86% 87% 94% 83%
2.1 C# .NET Core #6 13.45 221,428 1585 37.16 97% 53% 72% 56%
2.4 C# .NET Core #7 15.72 863,420 1822 49.74 85% 74% 78% 80%
2.6 C# Mono LLVM #6 16.61 197,608 1585 43.74 59% 88% 55% 62%
3.1 C# Mono LLVM #7 19.87 515,204 1822 56.94 63% 97% 64% 65%
3.1 F# .NET Core #4 19.94 1,170,580 1477 65.00 77% 83% 92% 76%
3.2 Rust #2 20.45 172,368 1324 55.55 69% 100% 44% 61%
3.3 OCaml #3 21.48 259,876 1789 57.12 91% 100% 39% 38%
3.7 Go #3 24.02 265,944 1090 73.42 94% 83% 65% 65%
4.0 F# .NET Core #3 25.99 1,171,660 1111 63.88 81% 82% 56% 29%
4.3 C# Mono LLVM #4 28.04 519,728 1696 89.04 74% 97% 74% 73%
4.5 C# .NET Core #4 29.26 867,604 1696 102.91 86% 86% 93% 88%
4.7 Clojure #7 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
4.8 Java #5 30.84 219,764 2211 70.64 28% 92% 18% 92%
4.8 C# .NET Core #3 31.09 693,888 1404 96.64 76% 91% 71% 75%
5.0 Scala 32.40 836,800 1625 120.94 97% 93% 93% 91%
5.0 C# Mono LLVM #3 32.50 535,956 1404 105.56 82% 72% 86% 86%
5.1 Lisp SBCL #5 33.16 163,528 2301 33.12 100% 1% 1% 0%
5.1 Lisp SBCL #4 33.19 163,528 2272 33.15 1% 0% 100% 1%
5.3 OCaml #2 34.21 384,856 1205 81.67 94% 85% 39% 24%
5.7 Chapel 36.84 283,024 1056 124.11 100% 88% 78% 83%
5.8 Go #4 37.39 265,868 1139 127.05 97% 94% 76% 75%
6.0 Scala #2 39.06 964,812 1123 105.55 52% 71% 59% 89%
6.3 C# Mono LLVM #5 40.84 375,564 2445 134.64 80% 78% 79% 95%
6.7 Clojure #6 43.49 1,010,396 1737 117.91 87% 72% 70% 44%
6.9 PHP #4 44.55 135,472 1060 152.16 81% 92% 76% 93%
7.3 Scala #6 46.90 504,360 1380 176.76 94% 95% 94% 95%
7.4 Java #4 47.92 184,716 1873 48.36 1% 8% 92% 1%
8.3 Hack #4 53.86 554,620 1061 183.88 93% 76% 88% 87%
8.5 Go #2 55.07 265,748 1531 149.54 64% 71% 61% 84%
9.0 Clojure #4 57.85 1,010,468 1944 179.49 81% 82% 80% 69%
9.1 Rust 59.09 176,084 1072 145.31 38% 55% 82% 74%
9.2 Go 59.29 265,368 980 202.70 100% 89% 77% 77%
9.5 Node.js #2 61.60 2,035,172 904 161.13 88% 99% 87% 87%
9.8 Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
10 OCaml 66.82 421,172 870 66.76 18% 1% 83% 1%
11 Perl #4 68.40 1,069,012 472 223.62 93% 76% 68% 94%
11 F# .NET Core 71.88 1,028,096 701 233.91 81% 80% 84% 82%
11 Node.js 72.17 2,465,076 974 167.63 74% 93% 75% 79%
11 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
12 Python 3 #3 76.50 162,004 1937 297.12 97% 97% 97% 99%
13 Fortran Intel 86.35 162,824 2238 86.30 0% 0% 100% 1%
14 Racket #4 89.60 366,908 881 89.58 1% 0% 100% 1%
14 C# Mono LLVM 91.65 522,200 1420 91.82 94% 1% 1% 6%
17 C# .NET Core 107.35 864,876 1420 107.93 98% 2% 2% 1%
20 Ruby 131.92 134,100 637 7 min 87% 78% 92% 78%
21 Python 3 #8 133.46 451,204 647 6 min 98% 59% 89% 55%
21 Lisp SBCL #2 138.34 386,460 1277 138.26 1% 1% 100% 1%
22 Lisp SBCL #3 138.91 386,460 1284 137.83 1% 100% 0% 1%
25 Erlang HiPE #3 163.56 1,077,148 932 7 min 51% 57% 99% 64%
26 C# .NET Core #2 166.88 1,080,716 1012 170.14 7% 78% 11% 8%
27 Erlang #3 175.10 892,448 932 8 min 69% 71% 94% 56%
28 Ruby JRuby 181.44 968,128 637 9 min 84% 83% 76% 67%
29 Ruby JRuby #3 190.54 965,132 540 10 min 91% 80% 79% 75%
30 Lua #2 195.17 860,768 613 193.80 1% 0% 1% 100%
31 C# Mono LLVM #2 202.43 507,980 1012 202.24 16% 1% 85% 1%
32 Erlang HiPE 206.47 3,561,784 930 7 min 58% 83% 76% 46%
33 Perl #2 216.14 536,960 359 215.98 100% 0% 1% 1%
38 Erlang 242.57 3,590,628 930 8 min 57% 71% 71% 71%
38 Racket 245.49 1,312,972 542 245.44 1% 1% 5% 96%
47 Dart 5 min 438,904 595 5 min 80% 1% 5% 16%
50 Smalltalk VW #5 5 min 378,812 1153 5 min 50% 50% 0% 1%
59 Ruby #2 6 min 169,544 420 6 min 74% 23% 4% 0%
67 Ruby #3 7 min 174,188 540 7 min 34% 17% 17% 34%
C# .NET Core #5 Failed
Ruby #5 Failed
Ruby #4 Failed
Ruby #6 Failed
Ruby JRuby #6 Failed
Ruby JRuby #5 Failed
Ruby JRuby #2 Failed
Ruby JRuby #4 Failed
TypeScript Failed
Swift #2 Bad Output
Swift Make Error