The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Rust #4 5.30 156,224 1728 16.50 57% 90% 72% 99%
1.2 C gcc 6.46 130,076 1500 17.06 51% 37% 89% 88%
1.3 C++ g++ #3 7.15 164,080 1252 24.21 82% 83% 80% 96%
1.5 Java  8.02 467,004 1802 25.57 76% 98% 73% 74%
1.8 Rust #3 9.44 152,620 1641 23.98 91% 38% 91% 36%
2.3 Ada 2005 GNAT #2 11.98 278,036 4865 25.87 87% 48% 61% 22%
2.4 Java #6 12.65 462,180 1602 43.82 86% 98% 83% 82%
2.5 C# .NET Core #6 13.29 220,400 1585 36.59 97% 53% 75% 52%
2.5 Java #3 13.36 458,892 1630 46.60 84% 90% 83% 94%
3.0 C# .NET Core #7 15.98 854,968 1822 51.02 74% 83% 89% 75%
3.2 Rust #2 17.10 162,840 1324 48.39 55% 87% 57% 87%
3.3 Go #6 17.36 149,280 1582 64.05 87% 91% 95% 97%
3.7 F# .NET Core #4 19.48 1,155,400 1477 63.22 81% 92% 76% 77%
3.7 OCaml #3 19.76 256,940 1789 54.18 43% 96% 43% 94%
3.9 Swift #2 20.55 219,908 1366 75.83 95% 94% 90% 91%
4.8 Swift 25.30 181,560 1231 81.22 76% 99% 74% 74%
4.9 F# .NET Core #3 25.96 1,168,340 1111 65.08 92% 49% 84% 28%
5.2 C# .NET Core #3 27.48 683,568 1404 91.03 80% 88% 74% 90%
5.5 C# .NET Core #4 28.94 865,264 1696 102.40 87% 88% 89% 91%
5.7 Clojure #7 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
5.8 Java #5 30.95 188,752 2211 68.94 84% 89% 20% 31%
6.3 Dart #2 33.37 2,075,756 2455 91.46 83% 78% 59% 55%
6.3 OCaml #2 33.65 394,424 1205 78.26 75% 84% 31% 46%
6.4 Chapel 33.87 281,012 1063 119.14 100% 94% 72% 86%
6.4 Lisp SBCL #4 34.05 164,172 2272 34.01 1% 1% 0% 100%
6.4 Lisp SBCL #5 34.16 164,172 2301 34.12 0% 1% 1% 100%
7.7 Scala #2 40.87 976,868 1123 106.81 60% 76% 38% 90%
7.9 Haskell GHC #2 41.92 602,836 1463 146.09 87% 95% 91% 89%
8.2 Clojure #6 43.49 1,010,396 1737 117.91 87% 72% 70% 44%
8.3 Go #2 43.95 265,588 1531 132.28 75% 100% 63% 64%
8.4 PHP #4 44.55 135,472 1060 152.16 81% 92% 76% 93%
8.7 Rust 46.03 177,796 1072 118.42 43% 70% 74% 71%
9.1 Haskell GHC 48.07 507,108 1052 169.88 97% 89% 89% 89%
9.2 Java #4 48.61 184,640 1873 49.03 90% 1% 11% 1%
10 Hack #4 53.87 286,948 1061 185.60 91% 99% 76% 80%
11 Clojure #4 57.85 1,010,468 1944 179.49 81% 82% 80% 69%
11 Node.js #2 60.73 2,095,052 904 151.74 96% 84% 84% 83%
12 Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
12 OCaml 65.89 416,980 870 65.83 1% 1% 1% 100%
13 Go 67.29 392,532 980 217.84 76% 68% 88% 98%
13 Perl #4 68.40 1,069,012 472 223.62 93% 76% 68% 94%
13 Node.js 70.53 2,488,100 974 161.06 83% 75% 85% 75%
13 F# .NET Core 70.81 1,032,492 701 233.32 83% 83% 86% 80%
14 Python 3 #3 72.35 229,040 1937 268.72 98% 94% 91% 94%
14 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
16 Fortran Intel 86.93 203,808 2238 86.86 100% 1% 0% 0%
17 Racket #4 89.60 366,908 881 89.58 1% 0% 100% 1%
19 Ruby #7 101.95 381,312 852 6 min 84% 98% 85% 95%
20 C# .NET Core 107.08 857,080 1420 108.04 81% 2% 1% 19%
21 Python 3 #8 113.94 466,340 647 5 min 61% 86% 65% 100%
25 Ruby 130.87 133,912 637 7 min 89% 95% 85% 93%
26 Lisp SBCL #2 138.19 347,384 1277 138.12 1% 100% 1% 1%
26 Lisp SBCL #3 140.25 349,224 1284 139.61 1% 86% 14% 1%
30 C# .NET Core #2 160.27 1,135,480 1012 163.74 19% 59% 11% 16%
31 Erlang HiPE #3 163.56 1,077,148 932 7 min 51% 57% 99% 64%
33 Erlang #3 175.10 892,448 932 8 min 69% 71% 94% 56%
34 Ruby JRuby #3 181.25 1,592,680 540 9 min 77% 88% 74% 84%
34 Lua #2 182.12 572,508 613 180.68 1% 100% 1% 1%
34 Ruby JRuby 182.54 1,587,804 637 9 min 78% 79% 73% 82%
35 TypeScript 184.86 523,524 708 183.91 75% 2% 1% 24%
39 Erlang HiPE 206.47 3,561,784 930 7 min 58% 83% 76% 46%
41 Perl #2 216.14 536,960 359 215.98 100% 0% 1% 1%
46 Erlang 242.57 3,590,628 930 8 min 57% 71% 71% 71%
46 Racket 245.49 1,312,972 542 245.44 1% 1% 5% 96%
58 Dart 5 min 447,108 595 5 min 38% 19% 14% 33%
61 Smalltalk VW #5 5 min 378,812 1153 5 min 50% 50% 0% 1%
76 Ruby #2 6 min 163,104 420 6 min 1% 1% 100% 1%
82 Ruby #3 7 min 163,760 540 7 min 27% 25% 25% 26%
C# .NET Core #5 Failed