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.81 156,348 1624 11.78 70% 70% 73% 96%
1.4 Rust #4 5.40 135,184 1749 17.13 60% 92% 69% 96%
1.5 Rust #6 5.59 135,644 1671 17.27 82% 87% 52% 87%
1.5 C# aot 5.63 185,204 2044 18.00 76% 90% 70% 83%
1.5 C# .NET Core 5.74 183,856 2044 18.58 81% 92% 77% 73%
1.6 F# .NET Core #6 5.97 183,292 1907 19.71 92% 72% 84% 83%
1.6 C gcc 6.00 130,132 1506 18.48 70% 95% 89% 53%
1.6 Rust #9 6.25 134,196 1841 18.20 52% 92% 82% 65%
1.7 Rust #5 6.63 133,576 1739 20.72 92% 72% 77% 71%
2.0 C++ g++ #3 7.48 165,456 1276 24.46 75% 98% 77% 77%
2.2 Java OpenJ9 8.43 345,684 1812 24.70 75% 74% 65% 79%
2.2 Rust #3 8.47 133,696 1661 24.02 51% 91% 81% 60%
2.4 Java  9.33 447,976 1812 29.36 73% 83% 82% 77%
2.6 F# .NET Core #2 10.05 194,412 1926 36.67 89% 88% 98% 91%
2.7 F# .NET Core #5 10.19 201,312 1959 37.20 95% 87% 92% 91%
2.8 Ada 2012 GNAT #2 10.65 258,552 4908 23.87 89% 80% 20% 35%
3.1 C++ g++ 11.70 756,432 1446 24.75 74% 27% 99% 11%
3.1 Go #7 11.77 160,184 1607 44.52 94% 98% 94% 92%
3.1 Java #3 11.93 460,076 1635 40.44 80% 97% 81% 81%
3.1 Java #6 11.97 451,572 1607 40.23 92% 81% 81% 82%
3.2 Go #6 12.22 150,732 1590 45.56 97% 92% 91% 93%
3.4 C# aot #6 12.80 184,772 1603 36.06 66% 97% 51% 68%
3.4 C# .NET Core #5 12.87 183,592 2319 36.05 71% 98% 29% 82%
3.4 C# aot #5 12.87 184,056 2319 36.48 71% 96% 61% 55%
3.4 Rust #2 13.05 135,812 1347 41.92 84% 86% 83% 69%
3.4 C# .NET Core #6 13.08 184,600 1603 35.89 53% 52% 97% 73%
3.5 Go #3 13.41 150,716 1722 51.02 95% 99% 91% 96%
3.8 Julia #6 14.36 334,520 1437 40.97 25% 100% 82% 79%
4.0 C# .NET Core #7 15.21 736,916 1838 49.66 76% 82% 91% 77%
4.0 C# aot #7 15.30 786,808 1838 50.30 84% 87% 82% 75%
4.3 Lisp SBCL #6 16.20 537,860 2479 58.23 87% 89% 97% 87%
4.4 Chapel #2 16.75 291,856 1029 63.26 100% 93% 93% 92%
4.5 Go #4 17.26 145,280 1543 59.52 86% 81% 89% 89%
5.1 F# .NET Core #4 19.53 1,166,348 1509 63.00 84% 87% 80% 72%
5.1 Java OpenJ9 #6 19.58 366,484 1607 69.54 91% 92% 87% 84%
5.2 Java OpenJ9 #3 19.71 370,048 1635 69.85 98% 90% 82% 84%
5.3 Lisp SBCL 20.18 331,036 2424 62.19 69% 76% 92% 70%
5.4 Julia #5 20.74 335,720 1373 62.00 100% 87% 25% 87%
5.6 Julia #4 21.21 436,888 1380 63.61 97% 87% 74% 42%
5.7 Swift #2 21.77 257,384 1367 82.66 94% 97% 94% 95%
5.9 OCaml #3 22.37 255,604 1833 61.94 40% 97% 46% 94%
6.5 C# aot #4 24.85 797,540 1702 88.08 87% 89% 91% 87%
6.5 C# .NET Core #4 24.86 802,732 1702 87.93 85% 89% 93% 87%
6.6 F# .NET Core #3 25.27 1,206,208 1111 62.95 27% 92% 51% 79%
6.8 Node js #3 25.74 393,728 1812 76.83 74% 86% 68% 70%
6.8 C# aot #3 25.88 698,996 1404 86.80 80% 93% 79% 84%
6.9 Dart snapshot #3 26.11 352,776 1502 51.15 60% 2% 54% 79%
7.6 C# .NET Core #3 28.77 693,448 1404 91.79 86% 78% 85% 70%
8.7 Rust 33.07 150,188 1078 96.15 81% 54% 78% 77%
8.7 Lisp SBCL #4 33.09 153,692 2291 33.49 100% 1% 1% 0%
8.7 Lisp SBCL #5 33.18 153,692 2320 33.54 0% 0% 1% 100%
8.9 Dart aot #3 33.93 310,592 1502 98.41 75% 73% 93% 49%
8.9 Dart exe #3 34.08 304,620 1502 98.63 100% 70% 71% 48%
9.3 Java OpenJ9 #5 35.25 222,160 2219 85.83 87% 39% 92% 25%
9.3 Java #5 35.35 243,300 2219 78.57 30% 94% 21% 77%
9.4 Haskell GHC #2 35.91 637,624 1486 125.59 86% 86% 86% 91%
10 Haskell GHC 39.92 522,092 1059 134.37 93% 81% 82% 81%
11 Dart #3 41.43 458,252 1502 102.61 77% 86% 38% 46%
11 PHP #4 43.09 233,196 1079 135.46 91% 84% 67% 73%
15 Perl #4 56.62 1,069,148 476 190.22 70% 86% 87% 93%
15 Java #4 57.61 212,592 1882 59.52 1% 91% 10% 1%
16 Perl 61.77 1,253,436 652 205.95 82% 81% 82% 89%
17 Node js #2 62.96 1,628,632 935 212.57 91% 80% 96% 70%
17 Node js 63.62 1,704,920 1008 194.83 75% 82% 78% 72%
17 F# .NET Core 63.84 816,668 701 212.14 89% 81% 81% 81%
17 Java OpenJ9 #4 64.87 214,116 1882 67.43 1% 3% 1% 100%
18 Perl #3 67.55 1,146,764 513 237.48 85% 92% 92% 82%
19 Python 3 #3 72.24 199,856 1967 275.38 94% 94% 96% 96%
25 Racket #4 94.05 396,808 885 95.02 0% 86% 15% 0%
26 Fortran Intel 97.23 203,196 2238 97.95 0% 0% 0% 100%
27 Lisp SBCL #2 101.98 345,828 1284 102.72 63% 0% 0% 38%
27 Lisp SBCL #3 103.28 346,024 1290 104.48 0% 0% 100% 1%
31 Python 3 119.11 357,568 607 6 min 88% 96% 71% 80%
33 C# aot #2 126.80 966,336 1018 132.88 62% 16% 18% 9%
33 C# .NET Core #2 127.21 945,296 1018 134.56 22% 39% 42% 3%
33 Python 3 #8 127.50 462,392 655 6 min 64% 88% 63% 90%
36 Erlang HiPE #3 138.53 752,144 937 6 min 65% 65% 61% 92%
46 Julia #2 176.00 2,683,396 1014 10 min 96% 86% 88% 91%
47 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 Lua #2 189.90 521,716 613 191.07 1% 0% 99% 1%
51 Perl #2 194.78 659,552 359 194.59 0% 56% 43% 1%
57 JRuby #3 215.86 1,131,960 540 12 min 92% 85% 82% 81%
60 JRuby 228.35 1,127,948 637 13 min 88% 85% 87% 83%
60 Racket CS #4 228.95 830,352 885 232.15 58% 1% 1% 41%
69 Erlang HiPE 264.39 3,533,976 936 10 min 74% 44% 45% 78%
75 Racket 285.81 1,348,292 547 5 min 16% 87% 6% 17%
89 Julia 5 min 1,580,124 695 5 min 1% 1% 0% 99%
98 Ruby #2 6 min 168,904 420 7 min 39% 9% 14% 50%
102 Ruby #3 6 min 171,656 540 7 min 23% 35% 32% 23%
127 Racket CS 8 min 2,138,308 547 8 min 71% 1% 2% 27%
171 VW Smalltalk #5 10 min 385,272 1317 10 min 90% 1% 0% 10%
230 VW Smalltalk 14 min 385,872 1110 14 min 39% 34% 24% 4%
240 Matz's Ruby #2 15 min 168,304 420 15 min 62% 1% 2% 37%
247 Pharo Smalltalk #2 15 min 370,440 1100 15 min 3% 22% 12% 64%
247 Dart snapshot 15 min 452,092 610 15 min 0% 48% 52% 1%
247 Dart 15 min 467,996 610 15 min 24% 6% 69% 3%
249 Dart aot 15 min 387,732 610 16 min 71% 2% 1% 27%
251 Dart exe 15 min 396,572 610 16 min 13% 30% 49% 10%
278 Pharo Smalltalk 17 min 370,812 1186 17 min 64% 26% 12% 0%
362 Matz's Ruby #3 22 min 168,504 540 23 min 4% 54% 36% 7%
C# .NET Core #9 Failed
C# .NET Core #8 Failed
C# aot #9 Failed
C# aot #8 Failed
Dart #2 Failed
Dart aot #2 Failed
Dart exe #2 Make Error
Dart snapshot #2 Failed
Julia #3 Failed
OCaml Make Error
OCaml #2 Make Error
Pharo Smalltalk #5 Failed
Matz's Ruby #7 Failed
Matz's Ruby Failed
Rust #8 Make Error
Rust #7 Make Error
TypeScript Failed
Swift Make Error