The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 Ada 2005 GNAT #2 21.10 270,332 4865 21.07 1% 1% 100% 100%
1.1 C++ g++ #3 24.11 138,888 1252 24.09 1% 1% 100% 100%
1.2 PHP 25.75 250,224 1036 25.72 0% 0% 0% 100%
1.3 Scala #2 26.63 245,208 2080 26.61 0% 1% 1% 100%
1.3 Rust 27.22 149,540 2027 27.20 1% 100% 1% 100%
1.6 Java  #7 33.48 1,190,032 1844 33.44 1% 1% 0% 100%
1.6 C gcc #9 34.26 127,908 1535 34.24 1% 1% 100% 100%
1.9 Clojure #5 39.97 395,688 2852 39.93 1% 0% 1% 100%
1.9 C gcc #7 41.09 154,192 2280 41.06 0% 1% 100% 100%
2.2 Java  #2 46.38 519,052 1602 46.35 0% 1% 0% 100%
2.3 Java  #3 47.58 518,588 1630 47.54 1% 1% 0% 100%
2.4 Pascal Free Pascal #2 50.15 130,312 2383 50.12 1% 100% 1% 100%
2.4 Go #5 51.24 278,352 1268 51.20 0% 1% 1% 100%
2.5 C gcc #6 53.46 154,256 2439 53.43 1% 1% 100% 100%
2.8 Java  #4 58.78 196,372 1873 58.72 1% 1% 0% 100%
2.8 Fortran Intel #2 59.69 156,608 2079 59.66 0% 1% 1% 100%
3.0 Haskell GHC #2 63.54 388,532 1965 63.47 1% 0% 0% 100%
3.1 Java  #5 66.36 199,620 2211 66.30 1% 1% 0% 100%
3.2 Lisp SBCL #5 66.80 123,312 2301 66.72 0% 1% 1% 100%
3.2 F# Mono #4 66.83 1,145,104 1505 66.78 0% 1% 0% 100%
3.2 Lisp SBCL #4 66.91 122,432 2272 66.84 0% 0% 1% 100%
3.3 F# Mono #3 68.67 1,145,764 1111 68.56 1% 1% 1% 100%
3.4 C# Mono #7 72.11 505,548 1822 72.08 0% 1% 1% 100%
3.5 Haskell GHC #3 74.19 627,580 2749 74.13 1% 1% 0% 100%
3.9 Clojure #6 82.33 1,002,652 2793 82.23 1% 0% 0% 100%
4.0 Clojure #7 83.83 1,004,020 4387 83.76 0% 1% 1% 100%
4.4 Scala #6 93.00 491,624 1380 92.89 0% 1% 1% 100%
5.2 Fortran Intel 109.49 168,420 2238 109.43 0% 0% 1% 100%
5.3 C# Mono #3 111.99 518,304 1404 111.93 0% 1% 1% 100%
5.3 Ruby JRuby #4 112.23 1,631,204 449 112.13 0% 1% 1% 100%
5.5 C# Mono #4 115.33 505,496 1696 115.29 0% 1% 1% 100%
5.6 C# Mono 118.87 506,352 1420 118.83 0% 1% 1% 100%
5.7 JavaScript V8 #5 120.54 25,248 1249 120.41 1% 1% 1% 100%
5.8 Scala 123.09 965,908 1625 120.40 1% 2% 1% 100%
6.8 Go #2 143.49 273,936 1531 140.52 1% 1% 1% 100%
6.9 Clojure #4 146.05 996,744 3081 145.41 1% 2% 1% 100%
7.5 Go 159.12 404,780 980 159.03 0% 1% 1% 100%
8.0 Lisp SBCL #2 168.61 376,204 1277 168.52 0% 1% 1% 100%
8.0 Lisp SBCL #3 168.94 375,544 1284 168.83 1% 0% 0% 100%
8.3 PHP #4 175.26 147,836 1060 173.74 1% 1% 36% 100%
8.8 Ruby #4 186.17 502,900 449 182.95 1% 1% 100% 100%
10 Perl #2 214.42 465,444 359 211.38 0% 1% 1% 100%
10 Racket 219.49 1,422,300 542 219.16 1% 58% 43% 100%
11 C# Mono #5 225.72 330,576 2445 225.57 0% 1% 1% 100%
11 Lua #2 242.46 724,636 613 242.00 0% 1% 1% 100%
13 Dart 267.83 329,056 595 267.64 1% 1% 100% 100%
13 JavaScript V8 #2 275.03 441,276 451 274.86 0% 1% 1% 100%
13 JavaScript V8 275.52 342,948 423 275.34 0% 1% 1% 100%
14 Smalltalk VW #5 285.79 358,320 1153 285.50 1% 0% 0% 100%
14 Erlang HiPE #3 298.15 932,124 932 295.01 0% 1% 1% 100%
15 Python 3 #3 5 min 219,028 1937 5 min 0% 1% 1% 100%
16 Haskell GHC 5 min 502,936 1693 5 min 1% 1% 1% 100%
18 JavaScript V8 #3 6 min 361,284 390 6 min 0% 1% 1% 100%
24 Ruby JRuby 8 min 967,856 637 8 min 0% 1% 1% 100%
25 Ruby JRuby #3 8 min 969,300 540 8 min 0% 1% 1% 100%
25 Python 3 #8 8 min 356,168 647 8 min 0% 1% 1% 100%
32 Ruby #2 11 min 160,276 420 11 min 0% 2% 99% 100%
35 Ruby #3 12 min 164,980 540 12 min 1% 49% 52% 100%
35 Ruby 12 min 130,532 637 12 min 1% 100% 1% 100%
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
Perl #4 Failed
Perl Failed
Perl #3 Failed
Racket #2 Bad Output
Racket #4 Bad Output
Ruby JRuby #2 Failed
Scala #4 Failed