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.22 132,740 1252 23.60 78% 77% 76% 98%
1.2 Rust 8.60 155,776 2078 25.66 61% 70% 83% 91%
1.2 Ada 2005 GNAT #2 8.91 271,504 4865 19.29 22% 49% 80% 67%
1.3 Scala #2 9.65 247,476 2080 28.77 67% 80% 63% 89%
1.5 Java  #7 10.61 1,199,184 1844 35.27 79% 78% 90% 88%
1.7 C gcc #9 12.35 131,904 1535 36.58 37% 71% 95% 94%
1.8 Java  #2 12.83 518,036 1602 44.62 94% 85% 84% 85%
1.8 Java  #3 12.87 517,632 1630 44.79 95% 86% 84% 84%
2.1 Clojure #5 15.35 393,528 2852 40.48 59% 65% 71% 70%
2.1 C gcc #7 15.39 164,324 2280 42.15 42% 42% 100% 91%
2.4 C gcc #6 17.53 168,436 2439 55.40 97% 94% 62% 64%
2.6 Go #5 18.82 277,992 1268 49.83 38% 61% 83% 83%
2.7 Haskell GHC #2 19.79 506,156 1965 73.04 91% 91% 92% 97%
3.3 F# Mono #4 23.77 1,144,928 1505 64.69 65% 53% 97% 59%
3.4 C# Mono #7 24.56 505,208 1822 71.77 68% 65% 65% 95%
3.8 Fortran Intel #2 27.09 172,064 2079 68.10 37% 54% 83% 79%
3.9 F# Mono #3 28.13 1,145,392 1111 66.32 69% 47% 91% 30%
4.3 Clojure #7 31.32 1,003,968 4387 101.81 83% 91% 82% 70%
4.4 Clojure #6 31.94 999,008 2793 96.29 72% 69% 77% 86%
4.5 Haskell GHC #3 32.60 633,168 2749 94.98 58% 95% 82% 57%
4.6 Java  #5 32.87 209,148 2211 77.08 54% 69% 24% 89%
4.9 C# Mono #4 35.53 505,444 1696 114.96 77% 76% 99% 74%
5.3 Scala 38.02 957,700 1625 131.34 88% 86% 85% 88%
5.7 PHP 41.46 246,972 1036 46.74 91% 13% 4% 6%
5.8 C# Mono #5 41.59 330,560 2445 135.96 95% 79% 80% 78%
5.9 Scala #6 42.51 485,132 1380 160.26 94% 95% 95% 94%
6.2 Go 44.73 404,100 980 154.28 99% 84% 86% 77%
6.3 Go #2 45.40 273,956 1531 136.61 80% 88% 62% 72%
6.4 Pascal Free Pascal #2 46.24 130,068 2383 46.22 0% 100% 1% 1%
7.1 Clojure #4 51.38 1,000,312 3081 160.97 73% 80% 78% 84%
7.6 C# Mono #3 55.17 419,840 1404 172.96 76% 75% 90% 75%
8.1 Java  #4 58.48 196,404 1873 59.52 2% 2% 100% 1%
9.1 Perl 65.84 1,012,832 648 240.84 90% 93% 93% 91%
9.3 Lisp SBCL #4 66.84 123,300 2272 66.76 1% 46% 54% 1%
9.3 Lisp SBCL #5 66.84 123,308 2301 66.77 1% 76% 25% 1%
9.3 Perl #4 66.99 1,051,292 472 228.74 75% 74% 96% 97%
10 Perl #3 74.61 1,140,456 507 255.02 96% 89% 83% 76%
12 Python 3 #3 83.25 163,092 1937 5 min 98% 96% 96% 97%
12 PHP #4 87.95 246,828 1060 5 min 92% 100% 80% 83%
13 Haskell GHC 90.73 517,012 1693 5 min 98% 99% 98% 98%
15 Ruby JRuby #4 106.26 1,625,120 449 114.40 26% 58% 6% 19%
16 Fortran Intel 113.82 192,320 2238 113.76 1% 0% 0% 100%
17 C# Mono 120.57 506,708 1420 120.76 16% 4% 1% 85%
18 Erlang HiPE #3 129.78 868,000 932 6 min 62% 69% 93% 68%
23 Lisp SBCL #2 168.64 378,204 1277 168.55 0% 1% 1% 100%
23 Lisp SBCL #3 168.76 377,332 1284 168.53 0% 1% 1% 100%
24 Python 3 #8 174.01 364,288 647 8 min 91% 99% 62% 60%
26 Ruby #4 187.14 501,072 449 184.06 6% 93% 0% 1%
31 Perl #2 224.30 464,944 359 221.40 4% 31% 37% 29%
31 Racket 225.97 1,421,776 542 225.83 73% 1% 1% 28%
33 Ruby 238.96 129,896 637 13 min 97% 92% 73% 67%
37 Dart 264.73 329,932 595 266.66 7% 7% 53% 38%
97 Ruby #2 11 min 158,504 420 11 min 0% 1% 0% 100%
110 Ruby #3 13 min 164,540 540 13 min 22% 28% 30% 21%
C# Mono #2 Failed
C++ g++ Make Error
Erlang HiPE Failed
Erlang HiPE #2 Failed
F# Mono Failed
Go #3 Bad Output
Lisp SBCL Bad Output
OCaml #3 Failed
OCaml Failed
OCaml #2 Failed
Racket #2 Bad Output
Racket #4 Bad Output
Ruby JRuby #3 Timed Out
Ruby JRuby #2 Failed
Ruby JRuby Timed Out
Scala #4 Failed