The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 Java  #2 6.60 263,468 2568 20.56 76% 76% 90% 70%
1.0 Scala #2 6.77 223,624 2080 20.28 92% 70% 70% 69%
1.1 C++ g++ #3 7.15 163,608 1252 24.10 80% 97% 80% 83%
1.2 Go #3 8.16 259,760 1399 30.33 93% 91% 98% 91%
1.3 Clojure #5 8.89 367,112 2723 22.47 71% 61% 67% 56%
1.5 Rust 9.59 153,864 2027 25.27 84% 55% 83% 43%
1.7 Java  #7 11.29 1,118,288 1844 38.66 83% 97% 82% 82%
1.8 Ada 2005 GNAT #2 11.98 278,036 4865 25.87 87% 48% 61% 22%
1.9 Java  #6 12.36 462,128 1602 42.73 81% 97% 83% 85%
1.9 C gcc #7 12.53 191,152 2280 37.33 90% 55% 100% 55%
1.9 Java  #3 12.57 465,356 1630 44.00 87% 84% 96% 84%
2.0 C gcc #9 13.03 135,616 1535 36.08 95% 54% 100% 30%
2.6 C gcc #6 17.25 190,248 2439 55.12 100% 64% 96% 61%
2.7 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%
3.0 Haskell GHC #2 19.71 514,156 1965 72.87 96% 92% 91% 93%
3.3 OCaml #3 21.48 259,876 1789 57.12 91% 100% 39% 38%
3.3 PHP 21.76 230,448 1036 24.34 4% 91% 3% 15%
3.6 F# Mono #4 23.61 863,256 1505 66.08 64% 64% 77% 76%
3.6 Fortran Intel #2 23.90 194,140 2079 61.70 80% 49% 64% 67%
4.1 Go #5 26.81 273,824 1268 70.32 81% 37% 85% 61%
4.2 C# Mono #4 27.94 516,988 1696 89.40 98% 74% 75% 74%
4.3 Java  #5 28.49 220,268 2211 65.00 77% 45% 65% 43%
4.3 F# Mono #3 28.56 867,896 1111 67.67 45% 91% 75% 27%
4.6 Clojure #7 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
4.9 Scala 32.40 836,800 1625 120.94 97% 93% 93% 91%
4.9 C# Mono #3 32.46 536,460 1404 102.62 89% 86% 66% 76%
5.0 Lisp SBCL #5 33.16 163,528 2301 33.12 100% 1% 1% 0%
5.0 Lisp SBCL #4 33.19 163,528 2272 33.15 1% 0% 100% 1%
5.2 OCaml #2 34.21 384,856 1205 81.67 94% 85% 39% 24%
5.7 Haskell GHC #3 37.55 655,420 2749 95.20 68% 79% 44% 64%
5.8 Swift 38.06 197,380 1429 123.19 84% 83% 79% 87%
6.1 C# Mono #5 40.31 365,944 2445 132.36 91% 78% 81% 80%
6.2 Hack #4 40.90 352,272 1061 134.38 89% 74% 87% 81%
6.5 Go #2 42.59 266,232 1531 144.56 95% 68% 96% 82%
6.6 Clojure #6 43.49 1,010,396 1737 117.91 87% 72% 70% 44%
6.8 PHP #4 45.16 169,036 1060 153.17 89% 79% 94% 80%
7.1 Java  #4 46.71 182,932 1873 47.23 95% 2% 6% 1%
7.1 Scala #6 46.90 504,360 1380 176.76 94% 95% 94% 95%
8.4 Pascal Free Pascal #2 55.76 132,580 2383 55.72 100% 1% 1% 0%
8.8 Clojure #4 57.85 1,010,468 1944 179.49 81% 82% 80% 69%
10 OCaml 66.82 421,172 870 66.76 18% 1% 83% 1%
10 Perl #4 68.00 1,067,916 472 221.43 69% 68% 97% 92%
11 Go 71.17 265,892 980 246.70 84% 81% 87% 96%
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%
12 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%
14 C# Mono 91.10 521,688 1420 91.28 1% 93% 8% 1%
17 Ruby #4 109.09 505,688 449 109.06 1% 0% 100% 0%
18 JavaScript V8 #5 115.66 70,228 1249 115.54 1% 100% 0% 1%
20 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%
21 Lisp SBCL #2 138.34 386,460 1277 138.26 1% 1% 100% 1%
21 Lisp SBCL #3 138.91 386,460 1284 137.83 1% 100% 0% 1%
23 Erlang HiPE #3 152.52 1,126,548 932 6 min 59% 79% 57% 69%
25 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%
30 Lua #2 195.17 860,768 613 193.80 1% 0% 1% 100%
30 Racket 196.64 1,306,700 542 196.63 63% 37% 1% 0%
34 Erlang HiPE 221.13 3,569,412 930 7 min 71% 57% 54% 59%
36 Perl #2 236.97 535,684 359 236.75 1% 0% 100% 1%
39 Erlang 257.43 3,684,436 930 8 min 62% 68% 82% 65%
42 JavaScript V8 #2 279.77 517,020 451 279.57 1% 59% 42% 1%
43 JavaScript V8 283.31 425,684 423 283.15 1% 55% 19% 28%
48 Smalltalk VW #5 5 min 384,776 1153 5 min 75% 24% 0% 2%
51 Dart 5 min 435,088 595 5 min 18% 74% 5% 6%
57 Ruby #2 6 min 169,544 420 6 min 74% 23% 4% 0%
58 JavaScript V8 #3 6 min 468,072 390 6 min 99% 1% 1% 1%
66 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
Node.js #5 Failed
Lisp SBCL Timed Out
Racket #2 Bad Output
Ruby JRuby #2 Failed
Scala #4 Failed