The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Ada 2005 GNAT #2 21.13 270,628 4865 21.09 0% 1% 1% 100%
1.1 C gcc 23.93 126,832 1500 23.91 0% 1% 1% 100%
1.1 C++ g++ #3 24.04 137,908 1252 23.98 1% 1% 0% 100%
1.7 Java  36.57 512,948 1802 36.54 1% 0% 0% 100%
2.2 Java #6 47.14 516,280 1602 47.10 1% 1% 1% 100%
2.3 Java #3 48.21 516,076 1630 48.18 1% 1% 0% 100%
2.4 C# Mono LLVM #6 50.00 188,968 1585 49.96 0% 1% 1% 100%
2.7 Java #4 57.54 197,732 1873 57.48 1% 1% 0% 100%
2.8 Rust #2 58.49 158,344 1324 58.43 0% 1% 1% 100%
3.0 F# Mono LLVM #4 64.05 1,143,128 1477 64.00 1% 1% 0% 100%
3.2 Java #5 67.50 198,584 2211 67.44 1% 1% 1% 100%
3.3 Lisp SBCL #5 70.05 122,992 2301 69.97 1% 1% 1% 100%
3.3 Lisp SBCL #4 70.55 122,988 2272 70.46 0% 1% 1% 100%
3.4 F# Mono LLVM #3 71.13 1,145,064 1111 70.85 1% 1% 0% 100%
4.0 Clojure #7 83.65 1,001,268 3030 83.59 1% 1% 100% 100%
4.1 C# Mono LLVM #7 86.76 505,136 1822 86.73 0% 1% 1% 100%
4.2 Go #3 89.59 273,408 1090 89.53 0% 1% 1% 100%
4.4 Scala #6 93.00 491,624 1380 92.89 0% 1% 1% 100%
5.1 C# Mono LLVM #3 108.42 514,472 1404 108.36 1% 1% 1% 100%
5.2 Fortran Intel 109.49 168,420 2238 109.43 0% 0% 1% 100%
5.4 C# Mono LLVM #4 114.52 506,068 1696 114.48 0% 1% 1% 100%
5.6 C# Mono LLVM 118.66 506,832 1420 118.60 0% 1% 1% 100%
5.8 Scala 123.09 965,908 1625 120.40 1% 2% 1% 100%
5.9 Scala #2 124.85 1,018,868 1123 123.62 1% 1% 0% 100%
6.0 C# Mono LLVM #5 127.47 331,144 2445 127.37 0% 1% 1% 100%
6.3 Go #2 133.35 273,604 1531 133.24 1% 1% 1% 100%
7.4 Go #4 156.83 273,048 1139 156.74 1% 1% 1% 100%
7.7 PHP #4 163.07 149,888 1060 161.59 1% 1% 1% 100%
7.9 Clojure #6 166.53 996,300 1737 166.41 1% 17% 83% 100%
8.0 Go 168.50 404,160 980 165.22 0% 1% 1% 100%
8.0 Lisp SBCL #3 169.12 375,156 1284 169.02 1% 1% 1% 100%
8.0 Lisp SBCL #2 169.18 374,880 1277 169.08 1% 2% 1% 100%
8.2 Clojure #4 172.74 1,001,296 1944 172.59 1% 1% 100% 100%
9.2 Node.js #2 193.39 1,581,876 904 140.84 0% 1% 1% 100%
9.6 Perl #2 203.61 466,864 359 200.59 1% 1% 1% 100%
9.6 Node.js 203.72 1,232,228 974 151.22 0% 1% 1% 100%
10 Rust 215.69 159,352 1072 215.50 1% 1% 1% 100%
11 Chapel 222.23 267,284 1056 222.09 100% 0% 1% 0%
11 Lua #2 242.46 724,636 613 242.00 0% 1% 1% 100%
12 Racket 254.40 1,419,848 542 254.10 1% 1% 1% 100%
13 Smalltalk VW #5 283.39 348,764 1153 283.05 0% 1% 1% 100%
14 Dart 294.11 333,360 595 293.86 1% 1% 0% 100%
15 Erlang HiPE #3 5 min 884,748 932 5 min 1% 1% 1% 100%
15 Python 3 #3 5 min 219,028 1937 5 min 0% 1% 1% 100%
24 Ruby JRuby 8 min 962,244 637 8 min 0% 1% 1% 100%
25 Ruby JRuby #3 8 min 955,036 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 LLVM #2 Failed
Erlang HiPE Failed
F# Mono LLVM Failed
OCaml #3 Failed
OCaml Failed
OCaml #2 Failed
Perl #4 Failed
Perl Failed
Perl #3 Failed
Racket #4 Bad Output
Ruby #6 Failed
Ruby #4 Failed
Ruby #5 Failed
Ruby JRuby #4 Failed
Ruby JRuby #5 Failed
Ruby JRuby #2 Failed
Ruby JRuby #6 Failed
TypeScript Failed