The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 Scala #2 6.77 223,624 2080 20.28 92% 70% 70% 69%
1.1 C++ g++ #3 7.16 157,828 1252 24.08 83% 79% 82% 94%
1.2 Go #3 8.14 259,884 1399 29.97 91% 93% 93% 92%
1.3 Clojure #5 8.81 360,460 2852 22.51 82% 69% 38% 69%
1.5 Rust 9.94 155,760 2027 26.23 43% 83% 83% 58%
1.7 Java  #7 11.29 1,118,288 1844 38.66 83% 97% 82% 82%
1.8 Ada 2005 GNAT #2 11.91 278,332 4865 25.60 33% 37% 61% 86%
1.8 C gcc #7 12.17 189,420 2280 36.18 53% 97% 53% 96%
1.9 Java  #3 12.57 465,356 1630 44.00 87% 84% 96% 84%
1.9 Java  #2 12.79 465,104 1602 44.39 82% 88% 83% 95%
1.9 C gcc #9 13.03 135,548 1535 35.91 29% 59% 95% 94%
2.5 C gcc #6 17.04 189,204 2439 54.62 95% 64% 100% 63%
2.6 Haskell GHC 17.70 537,948 1693 65.71 97% 92% 92% 91%
2.9 C# Mono #7 19.39 516,420 1822 55.33 87% 63% 65% 72%
2.9 Haskell GHC #2 19.71 514,156 1965 72.87 96% 92% 91% 93%
3.0 OCaml #3 20.22 362,324 1789 54.07 93% 88% 40% 49%
3.2 PHP 21.76 230,448 1036 24.34 4% 91% 3% 15%
3.5 F# Mono #4 23.61 863,256 1505 66.08 64% 64% 77% 76%
3.5 Fortran Intel #2 23.90 194,140 2079 61.70 80% 49% 64% 67%
3.9 Go #5 26.56 274,556 1268 69.12 84% 99% 43% 36%
4.1 C# Mono #4 27.94 516,988 1696 89.40 98% 74% 75% 74%
4.2 Java  #5 28.49 220,268 2211 65.00 77% 45% 65% 43%
4.2 F# Mono #3 28.56 867,896 1111 67.67 45% 91% 75% 27%
4.4 Clojure #7 30.13 1,019,104 4387 98.01 75% 82% 83% 87%
4.8 Scala 32.40 836,800 1625 120.94 97% 93% 93% 91%
4.8 C# Mono #3 32.46 536,460 1404 102.62 89% 86% 66% 76%
4.9 Lisp SBCL #5 33.04 163,092 2301 33.00 100% 0% 1% 0%
4.9 Lisp SBCL #4 33.05 163,092 2272 33.02 0% 1% 1% 100%
5.1 OCaml #2 34.87 326,420 1205 83.01 25% 72% 42% 100%
5.5 Haskell GHC #3 37.55 655,420 2749 95.20 68% 79% 44% 64%
5.9 Go #2 40.16 265,904 1531 124.97 60% 58% 100% 94%
6.0 C# Mono #5 40.31 365,944 2445 132.36 91% 78% 81% 80%
6.3 Hack #4 42.43 331,504 1061 136.73 68% 88% 73% 96%
6.5 Clojure #6 43.80 1,016,780 2793 118.05 70% 86% 47% 69%
6.7 PHP #4 45.16 169,036 1060 153.17 89% 79% 94% 80%
6.9 Java  #4 46.71 182,932 1873 47.23 95% 2% 6% 1%
6.9 Scala #6 46.90 504,360 1380 176.76 94% 95% 94% 95%
8.2 Go 55.39 265,824 980 179.85 91% 68% 99% 67%
8.2 Clojure #4 55.53 1,017,244 3081 173.84 81% 79% 77% 78%
8.2 Pascal Free Pascal #2 55.76 132,580 2383 55.72 100% 1% 1% 0%
10 Perl #4 68.00 1,067,916 472 221.43 69% 68% 97% 92%
10 OCaml 68.68 464,664 870 68.62 1% 0% 100% 1%
11 Perl 71.28 1,130,696 648 248.49 84% 91% 90% 87%
11 Perl #3 75.47 1,144,860 507 262.47 84% 90% 100% 75%
11 Python 3 #3 76.50 162,004 1937 297.12 97% 97% 97% 99%
12 Ruby JRuby #4 80.18 1,870,964 449 85.35 8% 37% 20% 45%
13 F# Mono 85.87 660,772 701 251.88 73% 85% 73% 64%
13 Fortran Intel 86.35 162,824 2238 86.30 0% 0% 100% 1%
13 Racket #4 88.98 405,504 881 88.97 0% 100% 0% 0%
13 C# Mono 91.10 521,688 1420 91.28 1% 93% 8% 1%
16 Ruby #4 109.09 505,688 449 109.06 1% 0% 100% 0%
17 JavaScript V8 #5 115.66 70,228 1249 115.54 1% 100% 0% 1%
19 Ruby 131.92 134,100 637 7 min 87% 78% 92% 78%
20 Python 3 #8 133.46 451,204 647 6 min 98% 59% 89% 55%
20 Lisp SBCL #2 137.16 321,088 1277 137.09 1% 1% 73% 28%
20 Lisp SBCL #3 137.39 320,960 1284 137.33 86% 1% 0% 15%
23 Erlang HiPE #3 152.52 1,126,548 932 6 min 59% 79% 57% 69%
24 Erlang #3 164.12 1,036,744 932 7 min 88% 58% 60% 74%
25 Ruby JRuby #3 167.39 952,020 540 8 min 60% 67% 80% 93%
26 Ruby JRuby 173.18 1,100,248 637 9 min 77% 62% 92% 83%
28 C# Mono #2 187.28 522,028 1012 187.12 18% 47% 36% 1%
29 Lua #2 195.17 860,768 613 193.80 1% 0% 1% 100%
29 Racket 196.64 1,306,700 542 196.63 63% 37% 1% 0%
33 Erlang HiPE 221.13 3,569,412 930 7 min 71% 57% 54% 59%
35 Perl #2 236.97 535,684 359 236.75 1% 0% 100% 1%
38 Erlang 257.43 3,684,436 930 8 min 62% 68% 82% 65%
41 JavaScript V8 #2 279.77 517,020 451 279.57 1% 59% 42% 1%
42 JavaScript V8 283.31 425,684 423 283.15 1% 55% 19% 28%
43 Dart 290.04 429,148 595 292.15 2% 37% 61% 3%
46 Smalltalk VW #5 5 min 384,776 1153 5 min 75% 24% 0% 2%
56 Ruby #2 6 min 169,544 420 6 min 74% 23% 4% 0%
57 JavaScript V8 #3 6 min 468,072 390 6 min 99% 1% 1% 1%
64 Ruby #3 7 min 174,188 540 7 min 34% 17% 17% 34%
C++ g++ Make Error
Erlang #2 Failed
Erlang HiPE #2 Failed
Hack Bad Output
Lisp SBCL Timed Out
Racket #2 Bad Output
Ruby JRuby #2 Failed
Scala #4 Failed