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.17 134,552 1841 15.74 71% 91% 63% 80%
1.5 Rust #4 5.58 135,184 1749 17.35 78% 87% 92% 54%
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%
2.1 C++ g++ #3 7.97 165,824 1276 26.13 76% 76% 80% 95%
2.3 Java OpenJ9 8.66 336,808 1812 25.80 81% 66% 76% 74%
2.4 Java  9.06 435,240 1812 28.35 98% 73% 72% 69%
2.7 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%
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.2 Go #7 11.86 160,068 1607 44.82 93% 94% 97% 94%
3.2 Java #6 11.94 459,188 1607 40.25 81% 86% 91% 79%
3.2 Java #3 11.97 454,328 1635 40.46 99% 79% 80% 80%
3.3 Go #6 12.56 150,788 1590 46.16 93% 88% 88% 99%
3.4 C# .NET Core #5 12.87 183,592 2319 36.05 71% 98% 29% 82%
3.5 C# .NET Core #6 13.08 184,600 1603 35.89 53% 52% 97% 73%
3.6 Go #3 13.51 150,596 1722 50.93 97% 93% 96% 91%
3.6 Rust #2 13.54 135,616 1347 41.52 75% 82% 67% 83%
3.8 Julia #6 14.36 334,520 1437 40.97 25% 100% 82% 79%
4.1 C# .NET Core #7 15.21 736,916 1838 49.66 76% 82% 91% 77%
4.5 Chapel #2 17.00 289,284 1029 64.44 100% 93% 93% 93%
4.5 Lisp SBCL #6 17.05 542,300 2479 61.39 89% 86% 87% 98%
4.6 Go #4 17.13 145,332 1543 61.58 99% 94% 94% 72%
5.2 F# .NET Core #4 19.53 1,166,348 1509 63.00 84% 87% 80% 72%
5.3 Java OpenJ9 #6 19.78 399,620 1607 70.39 98% 93% 83% 83%
5.3 Java OpenJ9 #3 19.90 467,340 1635 70.04 87% 90% 80% 94%
5.5 Julia #5 20.74 335,720 1373 62.00 100% 87% 25% 87%
5.6 Lisp SBCL 21.01 316,492 2424 65.40 98% 71% 70% 72%
5.6 Julia #4 21.21 436,888 1380 63.61 97% 87% 74% 42%
5.8 Dart snapshot #3 21.93 421,044 1502 55.72 71% 76% 44% 63%
5.9 Swift #2 22.07 257,292 1367 83.89 99% 94% 94% 94%
6.0 OCaml #3 22.37 255,584 1833 62.55 49% 48% 89% 93%
6.6 C# .NET Core #4 24.86 802,732 1702 87.93 85% 89% 93% 87%
6.7 F# .NET Core #3 25.27 1,206,208 1111 62.95 27% 92% 51% 79%
6.9 Node js #3 25.74 393,728 1812 76.83 74% 86% 68% 70%
7.7 C# .NET Core #3 28.77 693,448 1404 91.79 86% 78% 85% 70%
9.0 Rust 33.62 153,028 1078 97.49 52% 88% 87% 63%
9.0 Dart aot #3 33.93 329,384 1502 98.37 77% 49% 75% 89%
9.1 Java #5 34.20 231,048 2219 77.44 89% 95% 23% 20%
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 Haskell GHC #2 37.65 756,564 1486 132.24 87% 86% 87% 91%
11 Haskell GHC 39.71 521,784 1059 142.49 88% 87% 94% 89%
11 Dart #3 40.85 460,780 1502 104.73 41% 39% 87% 89%
11 PHP #4 41.23 176,076 1079 134.55 90% 72% 71% 94%
11 Java OpenJ9 #5 41.33 228,048 2219 97.94 23% 46% 76% 92%
15 Java #4 56.60 211,936 1882 58.14 27% 1% 1% 74%
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%
17 Node js #2 62.96 1,628,632 935 212.57 91% 80% 96% 70%
17 Java OpenJ9 #4 63.52 211,292 1882 66.23 3% 86% 15% 1%
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%
18 Perl #3 67.01 1,146,680 513 230.00 75% 92% 94% 83%
20 Python 3 #3 73.39 217,080 1967 279.23 96% 95% 96% 94%
25 Racket #4 94.05 396,808 885 95.02 0% 86% 15% 0%
26 Fortran Intel 97.44 203,204 2238 98.41 97% 0% 0% 4%
30 Python 3 113.40 367,548 607 6 min 77% 96% 94% 75%
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%
34 C# .NET Core #2 127.21 945,296 1018 134.56 22% 39% 42% 3%
37 Python 3 #8 137.09 474,408 655 6 min 84% 60% 59% 99%
39 Erlang HiPE 145.04 3,239,424 936 6 min 68% 66% 59% 73%
47 Julia #2 176.00 2,683,396 1014 10 min 96% 86% 88% 91%
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%
76 Racket 285.81 1,348,292 547 5 min 16% 87% 6% 17%
90 Julia 5 min 1,580,124 695 5 min 1% 1% 0% 99%
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%
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 snapshot 15 min 460,944 610 15 min 4% 0% 0% 96%
251 Pharo Smalltalk #2 15 min 346,640 1100 16 min 28% 69% 1% 5%
251 Dart 15 min 467,664 610 15 min 31% 1% 5% 65%
254 Dart aot 15 min 386,972 610 16 min 3% 20% 77% 0%
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%
C# .NET Core #9 Failed
C# .NET Core #8 Failed
Dart #2 Failed
Dart aot #2 Failed
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 #6 Make Error
Rust #5 Make Error
Rust #7 Make Error
Rust #3 Make Error
TypeScript Failed
Swift Make Error