The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Rust #4 5.27 156,408 1728 17.06 77% 91% 68% 91%
1.0 C gcc 5.38 129,772 1499 16.37 61% 82% 89% 74%
1.1 Rust #6 5.56 158,324 1652 17.32 86% 56% 100% 73%
1.4 C++ g++ #3 7.18 164,052 1252 24.28 83% 83% 93% 83%
1.5 Java  7.93 465,372 1802 25.11 75% 75% 75% 93%
1.6 C++ g++ 8.67 756,560 1428 18.86 20% 87% 25% 89%
1.7 Rust #5 8.91 150,916 1716 23.16 30% 38% 100% 94%
1.7 Rust #3 9.12 150,768 1641 23.39 45% 29% 92% 92%
2.5 Ada 2005 GNAT #2 12.94 258,312 4865 31.07 55% 80% 21% 86%
2.5 Java #3 12.99 459,616 1630 44.88 84% 86% 81% 96%
2.5 Java #6 13.39 460,916 1602 46.82 86% 86% 87% 92%
2.6 C# .NET Core #6 13.45 219,468 1585 37.40 54% 52% 78% 97%
3.0 C# .NET Core #7 15.82 743,736 1822 51.09 75% 84% 88% 77%
3.0 Go #6 16.08 149,180 1582 59.44 95% 90% 90% 97%
3.2 Rust #2 16.80 162,860 1324 46.87 50% 85% 59% 88%
3.2 Lisp SBCL #6 16.99 535,356 2467 62.18 90% 100% 89% 89%
3.2 Go #3 17.09 149,120 1713 63.16 95% 94% 90% 93%
3.3 Chapel 17.21 331,460 1063 65.10 100% 93% 94% 94%
3.8 OCaml #3 20.02 261,944 1789 56.21 48% 91% 95% 48%
3.9 Swift #2 20.43 243,712 1366 76.16 94% 92% 92% 97%
4.1 Lisp SBCL 21.36 515,556 2413 66.49 99% 71% 71% 72%
4.6 Swift 24.40 176,144 1231 79.30 77% 80% 95% 76%
5.0 C# .NET Core #4 26.59 750,444 1696 93.94 89% 92% 87% 87%
5.1 C# .NET Core #3 26.75 700,004 1404 88.28 74% 92% 76% 90%
5.8 Java #5 30.64 186,028 2211 69.04 20% 89% 28% 91%
6.3 Lisp SBCL #5 33.17 168,328 2301 33.14 1% 1% 0% 100%
6.3 Lisp SBCL #4 33.25 168,328 2272 33.22 0% 100% 1% 0%
6.3 Dart #2 33.38 2,045,004 2455 90.84 70% 61% 58% 86%
6.5 OCaml #2 34.31 392,376 1205 80.67 39% 83% 85% 30%
6.9 Haskell GHC #2 36.18 631,676 1463 140.95 97% 99% 97% 97%
8.0 Rust 42.12 179,532 1072 112.26 78% 45% 98% 47%
8.3 PHP #4 43.96 235,632 1060 142.28 87% 100% 71% 72%
8.9 Haskell GHC 46.70 504,924 1052 158.61 89% 88% 88% 82%
9.2 Java #4 48.75 185,160 1873 50.42 1% 96% 1% 7%
9.5 Go #2 49.94 265,556 1531 165.46 70% 89% 77% 96%
10 Hack #4 53.87 286,948 1061 185.60 91% 99% 76% 80%
11 Go 58.30 391,800 980 207.93 86% 89% 99% 84%
12 Node.js #2 62.09 2,089,424 904 152.72 82% 85% 95% 82%
12 Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
13 OCaml 67.09 415,072 870 67.03 1% 100% 0% 1%
13 Node.js 67.50 2,294,496 974 157.58 80% 89% 76% 76%
13 Perl #4 68.40 1,069,012 472 223.62 93% 76% 68% 94%
14 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
16 Racket #4 84.39 371,384 881 84.38 1% 1% 100% 0%
16 Python 3 #3 84.73 221,028 1937 276.97 97% 93% 91% 91%
17 Fortran Intel 87.62 203,604 2238 87.57 1% 0% 100% 0%
19 C# .NET Core 97.91 726,816 1420 99.20 49% 50% 3% 1%
19 Ruby #7 101.95 381,312 852 6 min 84% 98% 85% 95%
23 Python 3 #8 120.84 451,468 647 6 min 96% 62% 95% 56%
25 Ruby 130.87 133,912 637 7 min 89% 95% 85% 93%
26 C# .NET Core #2 135.91 1,100,164 1012 139.36 21% 21% 34% 29%
27 Lisp SBCL #3 142.67 517,612 1284 142.59 1% 0% 100% 1%
27 Lisp SBCL #2 142.88 517,776 1277 142.79 1% 100% 1% 0%
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%
35 Lua #2 182.12 572,508 613 180.68 1% 100% 1% 1%
35 Ruby JRuby 182.54 1,587,804 637 9 min 78% 79% 73% 82%
35 TypeScript 184.21 514,760 708 184.19 1% 99% 1% 1%
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 Racket 240.84 1,315,380 542 240.77 4% 95% 1% 2%
46 Erlang 242.57 3,590,628 930 8 min 57% 71% 71% 71%
58 Dart 5 min 442,104 595 5 min 29% 9% 63% 2%
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%
124 Smalltalk VW #5 10 min 387,932 1303 10 min 39% 63% 34% 21%
C# .NET Core #5 Failed
F# .NET Core Failed
F# .NET Core #4 Failed
F# .NET Core #3 Failed
Smalltalk VW #2 Bad Output