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.75 180,812 1585 37.19 99% 52% 69% 53%
2.6 C# Mono LLVM #6 16.61 197,608 1585 43.74 59% 88% 55% 62%
2.7 C# .NET Core #7 17.50 751,264 1822 52.11 71% 71% 86% 70%
3.1 C# Mono LLVM #7 19.87 515,204 1822 56.94 63% 97% 64% 65%
3.3 OCaml #3 21.48 259,876 1789 57.12 91% 100% 39% 38%
3.6 F# Mono LLVM #4 23.49 993,192 1477 65.54 63% 58% 72% 88%
3.7 Go #3 24.02 265,944 1090 73.42 94% 83% 65% 65%
4.2 F# Mono LLVM #3 27.15 975,732 1111 68.71 48% 65% 70% 72%
4.3 C# Mono LLVM #4 28.04 519,728 1696 89.04 74% 97% 74% 73%
4.7 Clojure #7 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
4.8 C# .NET Core #4 30.70 757,572 1696 103.65 86% 83% 82% 88%
4.8 Java #5 30.84 219,764 2211 70.64 28% 92% 18% 92%
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%
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.3 Hack #4 40.90 352,272 1061 134.38 89% 74% 87% 81%
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.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.2 Go 59.29 265,368 980 202.70 100% 89% 77% 77%
9.8 Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
9.9 C# .NET Core #3 63.87 582,724 1404 196.00 78% 75% 87% 68%
10 OCaml 66.82 421,172 870 66.76 18% 1% 83% 1%
10 Node.js #2 67.13 1,964,380 904 162.11 79% 97% 82% 82%
11 Perl #4 68.40 1,069,012 472 223.62 93% 76% 68% 94%
11 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
11 Node.js 73.77 2,523,032 974 163.23 91% 72% 71% 76%
12 Python 3 #3 76.50 162,004 1937 297.12 97% 97% 97% 99%
12 Ruby #5 80.44 381,616 589 80.37 38% 15% 15% 36%
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%
14 Ruby JRuby #4 92.67 1,537,900 449 101.75 46% 9% 41% 15%
17 Ruby #4 109.09 505,688 449 109.06 1% 0% 100% 0%
17 C# .NET Core 109.11 750,160 1420 109.30 54% 1% 1% 45%
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%
24 C# .NET Core #2 154.78 343,380 1012 154.40 12% 10% 27% 53%
25 Erlang HiPE #3 163.56 1,077,148 932 7 min 51% 57% 99% 64%
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%
30 TypeScript 195.71 498,848 717 194.83 1% 78% 22% 1%
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%
48 Dart 5 min 436,268 595 5 min 55% 12% 1% 35%
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%
76 F# Mono LLVM 8 min 653,356 701 22 min 76% 70% 67% 72%
C# .NET Core #5 Failed
Ruby JRuby #5 Timed Out
Ruby JRuby #2 Failed
Swift Make Error