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.30 140,364 1728 16.34 100% 86% 55% 70%
1.1 Rust #6 5.69 143,940 1652 16.97 65% 66% 84% 86%
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.7 C++ g++ 8.82 757,092 1428 19.48 99% 92% 15% 17%
1.8 Rust #5 9.76 140,132 1716 25.01 94% 44% 94% 28%
1.9 Rust #3 9.96 139,988 1641 25.14 45% 26% 91% 92%
2.2 Ada 2005 GNAT #2 11.63 277,648 4865 25.16 31% 20% 86% 81%
2.4 Java #6 12.65 462,180 1602 43.82 86% 98% 83% 82%
2.5 C# .NET Core #6 13.28 223,584 1585 36.90 57% 97% 53% 73%
2.5 Java #3 13.36 458,892 1630 46.60 84% 90% 83% 94%
2.8 Go #3 15.02 149,248 1713 56.88 92% 94% 97% 96%
2.9 C# .NET Core #7 15.55 853,144 1822 50.42 84% 81% 82% 78%
3.3 Go #6 17.36 149,280 1582 64.05 87% 91% 95% 97%
3.3 Rust #2 17.62 140,368 1324 49.83 87% 100% 46% 52%
3.6 F# .NET Core #4 19.10 1,153,180 1477 62.50 84% 77% 80% 88%
3.7 OCaml #3 19.76 256,940 1789 54.18 43% 96% 43% 94%
3.9 Swift #2 20.43 263,816 1366 75.58 90% 95% 91% 95%
4.5 Swift 24.10 180,284 1231 79.51 78% 78% 81% 95%
4.9 F# .NET Core #3 25.98 1,177,524 1111 64.68 76% 95% 48% 31%
5.4 C# .NET Core #3 28.51 676,744 1404 92.14 78% 76% 96% 75%
5.4 C# .NET Core #4 28.56 866,468 1696 102.30 88% 89% 95% 87%
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.2 Lisp SBCL #5 32.92 168,840 2301 32.88 1% 0% 1% 100%
6.3 Lisp SBCL #4 33.32 168,808 2272 33.28 1% 64% 36% 0%
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%
7.6 C# .NET Core #5 40.47 706,572 2445 134.80 90% 84% 81% 82%
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.2 Rust 43.55 155,136 1072 116.72 47% 46% 80% 97%
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%
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 ? 870 ? 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%
14 Python 3 #3 72.35 229,040 1937 268.72 98% 94% 91% 94%
14 F# .NET Core 72.61 918,320 701 237.20 85% 83% 80% 83%
14 Perl #3 72.76 1,146,924 507 254.58 97% 74% 84% 96%
16 Fortran Intel 86.93 ? 2238 ? 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.06 853,784 1420 108.62 1% 1% 1% 100%
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 139.44 ? 1277 ? 100% 1% 1% 0%
26 Lisp SBCL #3 140.31 ? 1284 ? 1% 1% 100% 1%
31 C# .NET Core #2 162.95 1,133,212 1012 166.72 32% 42% 4% 26%
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 ? 613 ? 1% 100% 1% 1%
34 Ruby JRuby 182.54 1,587,804 637 9 min 78% 79% 73% 82%
35 TypeScript 184.86 ? 708 ? 75% 2% 1% 24%
39 Erlang HiPE 206.47 3,561,784 930 7 min 58% 83% 76% 46%
41 Perl #2 216.14 ? 359 ? 100% 0% 1% 1%
46 Erlang 242.57 3,590,628 930 8 min 57% 71% 71% 71%
46 Racket 245.49 ? 542 ? 1% 1% 5% 96%
58 Dart 5 min 447,108 595 5 min 38% 19% 14% 33%
61 Smalltalk VW #5 5 min ? 1153 ? 50% 50% 0% 1%
76 Ruby #2 6 min ? 420 ? 1% 1% 100% 1%
82 Ruby #3 7 min ? 540 ? 27% 25% 25% 26%