The Computer Language
Benchmarks Game

k-nucleotide

We accept something intermediate between chaos and rigidity — enough flex & slop & play to allow for Haskell programs that are not just mechanically translated from Fortran; enough similarity in the basic workloads & tested results.

Programming language advocates and curious programmers have contributed new programs and introduced newer techniques. Look at the slower simple sequential programs, and  look at the parallel programs written for multicore, and  look at the low-level programs written for SIMD. Always look at the source code.

× source secs mem gz busy cpu load
1.0 C++ g++ #2 3.76 156,180 1624 11.55 97% 71% 71% 69%
1.3 C gcc 5.01 130,104 1506 16.41 84% 100% 84% 59%
1.4 Rust #9 5.33 134,280 1841 16.09 60% 91% 62% 89%
1.5 C# .NET Core #9 5.68 186,384 2574 18.86 91% 90% 80% 71%
1.5 Rust #4 5.79 135,260 1749 18.00 84% 89% 83% 55%
1.5 Rust #6 5.81 136,740 1671 17.46 99% 80% 68% 53%
1.6 C# .NET Core 5.84 185,968 2044 17.80 67% 99% 69% 69%
1.6 F# .NET Core #6 5.89 185,148 1907 19.63 92% 87% 89% 65%
2.1 C++ g++ #3 7.97 165,824 1276 26.13 76% 76% 80% 95%
2.3 Java  8.70 446,004 1812 27.18 83% 78% 78% 73%
2.5 C# .NET Core #8 9.35 185,472 2593 30.60 73% 95% 78% 82%
2.6 F# .NET Core #5 9.69 196,048 1959 35.38 95% 84% 94% 93%
2.6 F# .NET Core #2 9.71 196,140 1926 35.82 95% 89% 94% 91%
3.1 Ada 2012 GNAT #2 11.60 258,468 4908 25.25 25% 82% 25% 86%
3.1 C++ g++ 11.78 756,408 1446 24.76 21% 14% 86% 89%
3.1 Java #6 11.80 468,716 1607 39.84 99% 78% 80% 81%
3.2 Go #7 12.08 157,488 1607 45.40 93% 93% 97% 92%
3.2 Java #3 12.10 481,956 1635 40.95 80% 82% 80% 98%
3.4 Go #6 12.89 148,108 1590 48.25 92% 92% 91% 99%
3.5 C# .NET Core #5 13.11 185,344 2319 36.28 77% 74% 75% 50%
3.5 Go #3 13.11 148,052 1722 48.51 95% 95% 88% 92%
3.5 C# .NET Core #6 13.15 186,696 1603 35.72 49% 71% 55% 97%
3.5 Rust #2 13.30 135,516 1347 41.07 82% 95% 66% 65%
3.9 Substrate VM 14.79 589,992 1812 44.18 98% 66% 67% 68%
4.2 C# .NET Core #7 15.62 718,820 1838 50.41 85% 75% 75% 88%
4.4 Go #4 16.67 143,104 1543 53.05 96% 72% 70% 79%
4.5 Lisp SBCL #6 17.05 542,300 2479 61.39 89% 86% 87% 98%
4.6 Chapel #2 17.15 293,404 1042 64.82 100% 92% 92% 93%
5.3 Substrate VM #3 19.74 589,200 1635 64.14 77% 76% 73% 99%
5.3 Substrate VM #6 19.78 589,116 1607 64.35 99% 76% 77% 74%
5.4 F# .NET Core #4 20.18 1,221,908 1509 62.86 86% 76% 79% 71%
5.4 Dart snapshot #3 20.35 347,508 1502 52.62 58% 35% 72% 94%
5.5 Julia #5 20.59 328,220 1373 52.21 62% 34% 99% 59%
5.6 Lisp SBCL 21.01 316,492 2424 65.40 98% 71% 70% 72%
5.9 Swift #2 22.11 257,660 1367 83.53 92% 99% 94% 93%
6.0 OCaml #3 22.37 255,584 1833 62.55 49% 48% 89% 93%
6.3 Julia #4 23.53 608,668 1380 69.41 68% 58% 98% 70%
6.8 C# .NET Core #4 25.60 726,048 1702 89.77 89% 85% 84% 92%
7.4 F# .NET Core #3 27.91 1,274,160 1111 65.33 39% 87% 36% 72%
8.7 Dart aot #3 32.59 299,576 1502 87.72 85% 59% 76% 49%
9.1 Rust 34.14 151,196 1078 98.06 51% 100% 54% 82%
9.1 Java #5 34.31 243,300 2219 78.91 50% 37% 73% 70%
9.5 Dart #3 35.50 461,700 1502 93.65 85% 86% 45% 48%
9.5 Haskell GHC #2 35.69 756,200 1486 126.21 88% 88% 87% 90%
9.6 Lisp SBCL #4 36.10 152,464 2291 36.48 0% 100% 0% 1%
9.7 Lisp SBCL #5 36.28 152,464 2320 36.85 0% 1% 100% 1%
10 Julia #3 37.51 272,520 1619 131.30 86% 97% 83% 83%
11 Haskell GHC 40.61 522,356 1059 144.03 87% 89% 87% 90%
11 PHP #4 41.23 176,076 1079 134.55 90% 72% 71% 94%
13 C# .NET Core #3 49.25 636,308 1404 165.14 89% 75% 92% 79%
14 Substrate VM #5 53.41 177,528 2219 130.80 42% 83% 39% 81%
16 Perl 58.50 1,252,960 652 198.48 87% 85% 84% 83%
16 Perl #4 59.27 1,068,952 476 194.43 85% 77% 89% 78%
16 Java #4 59.75 210,984 1882 61.27 1% 100% 1% 1%
16 Node js #2 61.19 1,675,796 935 194.31 97% 78% 71% 73%
17 F# .NET Core 65.26 894,440 701 211.64 83% 85% 84% 73%
18 Perl #3 67.01 1,146,680 513 230.00 75% 92% 94% 83%
18 Node js 67.41 1,388,220 1008 198.08 67% 88% 65% 74%
20 Python 3 #3 74.12 188,140 1967 280.38 94% 94% 93% 97%
22 Substrate VM #4 82.54 158,208 1882 83.47 1% 100% 0% 1%
25 Racket #4 94.05 396,808 885 95.02 0% 86% 15% 0%
26 Fortran Intel 97.53 203,268 2238 98.35 0% 33% 68% 0%
30 Python 3 110.90 259,864 607 6 min 90% 65% 96% 78%
32 Python 3 #8 119.85 459,924 655 6 min 66% 85% 65% 93%
32 Erlang HiPE #3 122.06 718,388 937 6 min 72% 67% 88% 70%
33 Lisp SBCL #3 123.08 316,480 1290 124.74 62% 0% 0% 39%
33 Lisp SBCL #2 124.26 313,896 1284 127.79 69% 1% 2% 31%
36 C# .NET Core #2 137.07 1,047,476 1018 141.39 29% 33% 34% 7%
39 Erlang HiPE 145.04 3,239,424 936 6 min 68% 66% 59% 73%
43 Julia #2 161.47 2,991,408 1014 9 min 99% 96% 89% 85%
48 Ruby 180.88 137,772 667 11 min 98% 99% 89% 91%
50 Ruby #7 189.35 386,384 880 11 min 98% 89% 97% 91%
50 Perl #2 189.64 659,208 359 190.57 1% 0% 30% 69%
51 Lua #2 189.90 521,716 613 191.07 1% 0% 99% 1%
56 JRuby 210.26 1,125,160 637 12 min 85% 91% 84% 86%
57 JRuby #3 214.57 1,122,620 540 12 min 86% 84% 84% 83%
61 Racket CS #4 228.95 830,352 885 232.15 58% 1% 1% 41%
69 Truffle Ruby 259.99 1,312,268 667 15 min 92% 94% 91% 88%
70 Truffle Ruby #3 262.47 1,318,476 540 15 min 91% 92% 88% 89%
76 Racket 285.81 1,348,292 547 5 min 16% 87% 6% 17%
96 Julia 6 min 1,578,744 695 6 min 94% 1% 1% 6%
100 Ruby #2 6 min 168,904 420 7 min 39% 9% 14% 50%
103 Ruby #3 6 min 171,656 540 7 min 23% 35% 32% 23%
129 Racket CS 8 min 2,138,308 547 8 min 71% 1% 2% 27%
148 Truffle Ruby #2 9 min 1,328,348 420 10 min 9% 54% 30% 21%
175 VW Smalltalk #5 10 min 384,920 1317 11 min 0% 1% 1% 100%
241 VW Smalltalk 15 min 385,292 1110 15 min 1% 90% 10% 1%
243 Matz's Ruby #2 15 min 168,304 420 15 min 62% 1% 2% 37%
249 Dart aot 15 min 390,532 610 15 min 13% 81% 1% 7%
249 Dart 15 min 460,064 610 15 min 98% 0% 1% 3%
250 Dart snapshot 15 min 448,608 610 15 min 44% 1% 1% 56%
251 Pharo Smalltalk #2 15 min 346,640 1100 16 min 28% 69% 1% 5%
294 Pharo Smalltalk 18 min 346,900 1186 18 min 31% 69% 0% 1%
367 Matz's Ruby #3 22 min 168,504 540 23 min 4% 54% 36% 7%
Dart #2 Failed
Dart aot #2 Failed
Dart snapshot #2 Failed
OCaml Make Error
OCaml #2 Make Error
Pharo Smalltalk #5 Failed
Matz's Ruby #7 Failed
Matz's Ruby Failed
Truffle Ruby #7 Failed
Rust #8 Make Error
Rust #5 Make Error
Rust #7 Make Error
Rust #3 Make Error
TypeScript Failed
Swift Make Error