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