The Computer Language
Benchmarks Game

k-nucleotide

Always look at the source code.

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.

× source secs mem gz busy cpu load
1.0 Matz's Ruby 5 min 127,080 644 17 min 93% 81% 82% 73%
1.0 C gcc 5.09 130,092 1506 16.69 100% 86% 60% 82%
1.1 Rust #5 6.56 133,684 1739 20.47 100% 92% 56% 65%
1.1 Rust #9 5.49 134,132 1841 16.20 51% 74% 78% 91%
1.1 Rust #3 6.98 134,544 1661 20.91 96% 90% 53% 61%
1.1 Rust #4 5.38 135,192 1749 17.05 64% 73% 89% 91%
1.1 Rust #6 7.19 135,436 1671 20.37 90% 72% 64% 58%
1.1 Rust #2 13.72 137,824 1347 43.49 66% 100% 69% 82%
1.1 Go #4 17.26 145,280 1543 59.52 86% 81% 89% 89%
1.1 Ruby 105.63 146,104 644 6 min 95% 94% 88% 86%
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 Rust 34.67 152,992 1078 99.73 62% 83% 54% 89%
1.2 Lisp SBCL #5 33.51 154,000 2320 33.89 0% 36% 65% 0%
1.2 Lisp SBCL #4 33.57 154,040 2291 33.92 0% 0% 100% 1%
1.2 C++ g++ #2 3.89 156,148 1631 11.99 94% 74% 70% 71%
1.3 Go #7 11.77 160,184 1607 44.52 94% 98% 94% 92%
1.3 C++ g++ #3 7.61 165,776 1276 25.08 78% 76% 98% 78%
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 PHP #4 41.23 168,632 1079 132.54 66% 85% 76% 93%
1.4 Fortran Intel 98.50 175,060 2238 100.11 1% 30% 70% 0%
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.5 C# .NET Core #6 13.08 184,600 1603 35.89 53% 52% 97% 73%
1.5 Ruby #2 6 min 186,304 420 6 min 97% 1% 0% 3%
1.5 Ruby #3 6 min 194,380 540 6 min 17% 32% 30% 22%
1.5 F# .NET Core #2 10.05 194,412 1926 36.67 89% 88% 98% 91%
1.6 Python 3 #3 72.24 199,856 1967 275.38 94% 94% 96% 96%
1.6 F# .NET Core #5 10.19 201,312 1959 37.20 95% 87% 92% 91%
1.7 Java  #4 57.61 212,592 1882 59.52 1% 91% 10% 1%
1.9 Java #5 35.35 243,300 2219 78.57 30% 94% 21% 77%
2.0 OCaml #3 22.04 255,644 1833 63.13 54% 46% 93% 93%
2.0 Swift #2 21.98 257,192 1367 83.02 93% 94% 93% 97%
2.0 Ada 2012 GNAT #2 10.66 258,552 4908 24.13 39% 38% 89% 60%
2.3 Chapel #2 16.75 291,856 1029 63.26 100% 93% 93% 92%
2.8 Julia #7 12.93 351,180 1365 32.90 48% 61% 68% 77%
2.8 Python 3 119.11 357,568 607 6 min 88% 96% 71% 80%
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.1 Node js #3 25.81 398,104 1812 79.25 77% 77% 67% 86%
3.1 Ruby #7 103.71 400,128 859 6 min 95% 85% 95% 89%
3.3 Racket #4 98.43 419,940 885 99.24 53% 0% 0% 47%
3.4 Matz's Ruby #7 19 min 435,660 870 1h 04 min 80% 88% 78% 84%
3.5 Java 9.33 447,976 1812 29.36 73% 83% 82% 77%
3.6 Java #6 11.97 451,572 1607 40.23 92% 81% 81% 82%
3.6 Dart #3 39.78 459,340 1502 107.60 53% 79% 52% 87%
3.6 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.7 Dart 16 min 464,632 610 16 min 57% 3% 1% 41%
4.0 Lisp SBCL 19.63 505,728 2424 61.40 71% 82% 88% 71%
4.0 Lisp SBCL #6 16.17 512,664 2479 57.91 86% 98% 88% 86%
4.1 Lisp SBCL #3 92.31 514,748 1290 100.89 99% 5% 3% 3%
4.1 Lisp SBCL #2 92.38 514,796 1284 93.35 68% 1% 0% 32%
4.1 Lua #2 189.90 521,716 613 191.07 1% 0% 99% 1%
4.1 Haskell GHC 39.92 522,092 1059 134.37 93% 81% 82% 81%
5.0 Haskell GHC #2 35.91 637,624 1486 125.59 86% 86% 86% 91%
5.2 Perl #2 194.78 659,552 359 194.59 0% 56% 43% 1%
5.5 C# .NET Core #3 28.77 693,448 1404 91.79 86% 78% 85% 70%
5.8 C# .NET Core #7 15.21 736,916 1838 49.66 76% 82% 91% 77%
5.9 Erlang HiPE #3 138.53 752,144 937 6 min 65% 65% 61% 92%
6.0 C++ g++ 11.75 756,276 1446 24.95 52% 13% 88% 60%
6.3 C# .NET Core #4 24.86 802,732 1702 87.93 85% 89% 93% 87%
6.4 F# .NET Core 63.84 816,668 701 212.14 89% 81% 81% 81%
7.4 C# .NET Core #2 127.21 945,296 1018 134.56 22% 39% 42% 3%
8.4 Perl #4 56.62 1,069,148 476 190.22 70% 86% 87% 93%
9.0 Perl #3 67.55 1,146,764 513 237.48 85% 92% 92% 82%
9.2 F# .NET Core #4 19.53 1,166,348 1509 63.00 84% 87% 80% 72%
9.5 F# .NET Core #3 25.27 1,206,208 1111 62.95 27% 92% 51% 79%
9.9 Perl 61.77 1,253,436 652 205.95 82% 81% 82% 89%
11 Racket 255.28 1,345,208 547 258.68 7% 0% 5% 89%
13 Node js 66.65 1,619,868 1008 205.28 74% 75% 73% 86%
13 Node js #2 62.50 1,679,184 935 204.90 78% 77% 78% 95%
15 Julia 6 min 1,945,488 695 6 min 67% 1% 1% 32%
28 Erlang HiPE 264.39 3,533,976 936 10 min 74% 44% 45% 78%
C# .NET Core #9 Failed
C# .NET Core #8 Failed
OCaml Make Error
OCaml #2 Make Error
Rust #8 Make Error
Rust #7 Make Error
TypeScript Failed
Swift Make Error