The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C++ g++ #3 7.15 163,608 1252 24.10 80% 97% 80% 83%
1.7 Ada 2005 GNAT #2 11.98 278,036 4865 25.87 87% 48% 61% 22%
1.8 Java  #6 12.87 462,488 1602 44.44 98% 81% 85% 82%
1.9 Java  #3 13.29 464,304 1630 46.45 86% 87% 94% 83%
2.4 C# .NET Core #7 17.50 751,264 1822 52.11 71% 71% 86% 70%
2.8 C# Mono LLVM #7 19.87 515,204 1822 56.94 63% 97% 64% 65%
3.0 OCaml #3 21.48 259,876 1789 57.12 91% 100% 39% 38%
3.3 F# Mono LLVM #4 23.49 993,192 1477 65.54 63% 58% 72% 88%
3.8 F# Mono LLVM #3 27.15 975,732 1111 68.71 48% 65% 70% 72%
3.9 C# Mono LLVM #4 28.04 519,728 1696 89.04 74% 97% 74% 73%
4.3 Clojure #7 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
4.3 C# .NET Core #4 30.70 757,572 1696 103.65 86% 83% 82% 88%
4.3 Java  #5 30.84 219,764 2211 70.64 28% 92% 18% 92%
4.5 Scala 32.40 836,800 1625 120.94 97% 93% 93% 91%
4.5 C# Mono LLVM #3 32.50 535,956 1404 105.56 82% 72% 86% 86%
4.6 Lisp SBCL #5 33.16 163,528 2301 33.12 100% 1% 1% 0%
4.6 Lisp SBCL #4 33.19 163,528 2272 33.15 1% 0% 100% 1%
4.8 OCaml #2 34.21 384,856 1205 81.67 94% 85% 39% 24%
5.5 Scala #2 39.06 964,812 1123 105.55 52% 71% 59% 89%
5.7 C# Mono LLVM #5 40.84 375,564 2445 134.64 80% 78% 79% 95%
5.7 Hack #4 40.90 352,272 1061 134.38 89% 74% 87% 81%
6.0 Go #2 42.59 266,232 1531 144.56 95% 68% 96% 82%
6.1 Clojure #6 43.49 1,010,396 1737 117.91 87% 72% 70% 44%
6.2 PHP #4 44.55 135,472 1060 152.16 81% 92% 76% 93%
6.6 Scala #6 46.90 504,360 1380 176.76 94% 95% 94% 95%
6.7 Java  #4 47.92 184,716 1873 48.36 1% 8% 92% 1%
8.1 Clojure #4 57.85 1,010,468 1944 179.49 81% 82% 80% 69%
8.9 Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
8.9 C# .NET Core #3 63.87 582,724 1404 196.00 78% 75% 87% 68%
9.4 OCaml 66.82 421,172 870 66.76 18% 1% 83% 1%
9.4 Node.js #2 67.13 1,964,380 904 162.11 79% 97% 82% 82%
9.6 Perl #4 68.40 1,069,012 472 223.62 93% 76% 68% 94%
10 Go 71.17 265,892 980 246.70 84% 81% 87% 96%
10 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
10 Node.js 73.77 2,523,032 974 163.23 91% 72% 71% 76%
11 Python 3 #3 76.50 162,004 1937 297.12 97% 97% 97% 99%
12 Fortran Intel 86.35 162,824 2238 86.30 0% 0% 100% 1%
12 Racket #4 88.85 405,268 881 88.84 1% 1% 0% 100%
13 C# Mono LLVM 91.65 522,200 1420 91.82 94% 1% 1% 6%
13 Ruby JRuby #4 92.67 1,537,900 449 101.75 46% 9% 41% 15%
15 Ruby #4 109.09 505,688 449 109.06 1% 0% 100% 0%
15 C# .NET Core 109.11 750,160 1420 109.30 54% 1% 1% 45%
18 Ruby 131.92 134,100 637 7 min 87% 78% 92% 78%
19 Python 3 #8 133.46 451,204 647 6 min 98% 59% 89% 55%
19 Lisp SBCL #2 138.34 386,460 1277 138.26 1% 1% 100% 1%
19 Lisp SBCL #3 138.91 386,460 1284 137.83 1% 100% 0% 1%
22 C# .NET Core #2 154.78 343,380 1012 154.40 12% 10% 27% 53%
23 Erlang HiPE #3 163.56 1,077,148 932 7 min 51% 57% 99% 64%
25 Erlang #3 175.10 892,448 932 8 min 69% 71% 94% 56%
25 Ruby JRuby 181.44 968,128 637 9 min 84% 83% 76% 67%
27 Ruby JRuby #3 190.54 965,132 540 10 min 91% 80% 79% 75%
27 Lua #2 195.17 860,768 613 193.80 1% 0% 1% 100%
28 C# Mono LLVM #2 202.43 507,980 1012 202.24 16% 1% 85% 1%
29 Erlang HiPE 206.47 3,561,784 930 7 min 58% 83% 76% 46%
30 Perl #2 216.14 536,960 359 215.98 100% 0% 1% 1%
34 Erlang 242.57 3,590,628 930 8 min 57% 71% 71% 71%
34 Racket 244.82 1,309,328 542 244.52 40% 60% 1% 1%
44 Dart 5 min 440,576 595 5 min 3% 4% 11% 85%
45 Smalltalk VW #5 5 min 378,812 1153 5 min 50% 50% 0% 1%
53 Ruby #2 6 min 169,544 420 6 min 74% 23% 4% 0%
61 Ruby #3 7 min 174,188 540 7 min 34% 17% 17% 34%
68 F# Mono LLVM 8 min 653,356 701 22 min 76% 70% 67% 72%
C# .NET Core #5 Failed
Ruby JRuby #2 Failed
Swift Bad Output