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 17.96 153,616 1252 17.94 1% 1% 0% 100%
1.2 Clojure #5 22.22 387,344 2852 22.20 0% 2% 1% 100%
1.5 Ada 2005 GNAT #2 27.12 278,324 4865 27.08 1% 0% 0% 100%
1.6 Rust 28.22 145,904 2078 28.19 1% 1% 1% 100%
1.7 Go #3 30.07 260,220 1399 30.04 1% 0% 0% 100%
1.8 C gcc #7 32.04 181,108 2280 32.01 1% 0% 0% 100%
1.8 Lisp SBCL #5 33.02 163,092 2301 32.99 0% 1% 1% 100%
1.8 Lisp SBCL #4 33.06 163,092 2272 33.02 0% 0% 1% 100%
1.9 Java  #7 34.83 1,124,104 1844 34.79 1% 1% 0% 100%
2.0 C gcc #9 35.06 129,644 1535 35.03 1% 1% 0% 100%
2.3 PHP 41.35 247,852 1036 41.33 1% 0% 0% 100%
2.6 Haskell GHC 46.67 497,248 1693 46.61 0% 1% 0% 100%
2.6 Java  #2 46.83 468,308 1602 46.79 1% 1% 0% 100%
2.6 Java  #3 47.44 467,024 1630 47.40 1% 1% 0% 100%
2.7 Java  #4 48.96 185,504 1873 48.92 1% 1% 0% 100%
2.9 C gcc #6 51.78 181,172 2439 51.75 1% 1% 0% 100%
3.0 OCaml #3 54.28 362,440 1789 54.23 1% 0% 0% 100%
3.1 C# Mono #7 55.41 512,196 1822 55.38 0% 1% 1% 100%
3.1 Fortran Intel #2 56.30 192,852 2079 56.26 0% 0% 1% 100%
3.2 Java  #5 58.03 218,636 2211 57.97 1% 1% 1% 100%
3.4 Haskell GHC #2 60.38 497,380 1965 60.31 0% 1% 1% 100%
3.7 F# Mono #4 66.62 864,620 1505 66.56 0% 0% 1% 100%
3.8 OCaml 68.45 464,580 870 68.39 0% 1% 0% 100%
3.9 F# Mono #3 69.55 867,632 1111 69.45 0% 1% 1% 100%
4.0 Go #5 71.18 274,576 1268 71.12 0% 1% 1% 100%
4.2 Clojure #7 75.24 1,018,460 4387 75.18 0% 1% 1% 100%
4.3 OCaml #2 77.21 325,516 1205 77.12 0% 1% 0% 100%
4.5 Pascal Free Pascal #2 80.04 132,500 2383 79.97 1% 0% 0% 100%
4.6 Fortran Intel 83.47 186,936 2238 83.42 0% 0% 1% 100%
4.8 Ruby JRuby #4 86.23 1,875,096 449 86.10 1% 0% 0% 100%
4.9 Haskell GHC #3 87.23 629,396 2749 87.14 1% 0% 0% 100%
4.9 C# Mono #4 88.05 516,972 1696 88.00 1% 1% 0% 100%
5.0 Racket #4 89.02 404,884 881 88.97 0% 1% 1% 100%
5.1 C# Mono 91.48 523,888 1420 91.44 0% 0% 0% 100%
5.4 Clojure #6 96.64 1,013,020 2793 96.54 0% 1% 1% 100%
5.8 C# Mono #3 103.73 478,908 1404 103.65 0% 1% 1% 100%
5.8 Scala #6 103.96 501,268 1380 103.83 0% 1% 1% 100%
6.0 Ruby #4 108.62 501,712 449 108.59 0% 1% 1% 100%
6.4 Scala 114.14 837,348 1625 114.06 1% 1% 1% 100%
6.4 JavaScript V8 #5 114.18 57,020 1249 114.05 0% 1% 1% 100%
7.2 Go #2 129.83 266,136 1531 129.74 1% 1% 0% 100%
7.6 Lisp SBCL #2 137.27 320,460 1277 137.18 1% 1% 1% 100%
7.7 Lisp SBCL #3 137.99 318,528 1284 137.04 0% 0% 1% 100%
7.7 Scala #2 138.87 216,604 2080 138.83 0% 0% 0% 100%
7.9 Hack #4 141.07 352,484 1061 140.55 0% 1% 1% 100%
8.8 Clojure #4 158.12 1,009,212 3081 157.96 0% 2% 1% 100%
9.7 Lua #2 174.70 793,696 613 173.24 1% 1% 0% 100%
10 Go 184.77 266,436 980 180.83 1% 0% 1% 100%
10 C# Mono #2 186.33 542,180 1012 186.15 0% 1% 1% 100%
11 Racket 197.52 1,310,632 542 197.39 0% 1% 1% 100%
12 Perl #2 213.01 534,952 359 209.48 0% 1% 1% 100%
15 JavaScript V8 #2 276.89 517,060 451 276.68 0% 1% 1% 100%
16 JavaScript V8 283.75 425,664 423 283.53 1% 1% 0% 100%
16 Python 3 #3 284.38 153,732 1937 284.04 0% 1% 1% 100%
16 Dart 290.27 425,544 595 290.07 0% 1% 1% 100%
17 PHP #4 5 min 247,712 1060 299.18 1% 1% 0% 100%
17 Erlang HiPE #3 5 min 1,040,460 932 5 min 1% 1% 0% 100%
18 Smalltalk VW #5 5 min 385,584 1153 5 min 1% 0% 0% 100%
20 Erlang HiPE 6 min 3,659,572 930 5 min 5% 5% 8% 100%
21 JavaScript V8 #3 6 min 468,144 390 6 min 0% 1% 1% 100%
21 Ruby #2 6 min 166,108 420 6 min 0% 1% 0% 100%
24 Python 3 #8 7 min 422,024 647 7 min 0% 1% 1% 100%
24 Ruby JRuby 7 min 946,844 637 7 min 1% 1% 0% 100%
25 Ruby #3 7 min 171,776 540 7 min 0% 1% 1% 100%
25 Ruby 7 min 132,188 637 7 min 0% 1% 1% 100%
26 Ruby JRuby #3 7 min 944,788 540 7 min 1% 0% 0% 100%
C# Mono #5 Failed
C++ g++ Make Error
Erlang HiPE #2 Failed
F# Mono Failed
Hack Bad Output
Lisp SBCL Timed Out
Perl #3 Failed
Perl Failed
Perl #4 Failed
Racket #2 Bad Output
Ruby JRuby #2 Failed
Scala #4 Failed