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 C++ g++ #2 3.89 156,148 1631 11.99 94% 74% 70% 71%
1.3 C gcc 5.09 130,092 1506 16.69 100% 86% 60% 82%
1.4 Rust #4 5.36 135,048 1749 17.00 91% 55% 81% 90%
1.4 Rust #9 5.45 134,056 1841 16.22 91% 63% 78% 66%
1.4 C# .NET Core 5.61 185,068 2044 18.05 77% 82% 70% 93%
1.5 F# .NET Core #6 5.86 184,236 1907 19.51 93% 72% 83% 85%
1.7 Rust #5 6.58 133,768 1739 20.49 55% 92% 100% 65%
1.8 Rust #6 7.11 135,424 1671 20.21 55% 87% 96% 46%
2.0 C++ g++ #3 7.61 165,776 1276 25.08 78% 76% 98% 78%
2.0 Julia #8 7.81 344,428 945 17.49 63% 74% 23% 64%
2.2 Rust #3 8.46 133,664 1661 24.00 52% 92% 98% 43%
2.3 Java  9.08 404,688 1812 29.03 77% 77% 93% 73%
2.5 F# .NET Core #2 9.79 199,748 1926 35.78 96% 91% 87% 92%
2.7 Ada 2012 GNAT #2 10.66 258,552 4908 24.13 39% 38% 89% 60%
3.0 C++ g++ 11.75 756,276 1446 24.95 52% 13% 88% 60%
3.0 Julia #7 11.79 360,364 1365 29.07 54% 71% 74% 46%
3.1 Java #6 11.86 420,004 1607 40.15 80% 80% 81% 98%
3.1 Java #3 11.88 419,164 1635 40.23 99% 78% 80% 81%
3.2 Go #3 12.58 150,308 1722 47.83 95% 95% 95% 95%
3.3 Go #7 12.65 160,080 1607 47.44 93% 94% 93% 96%
3.3 Go #6 12.78 150,492 1590 46.87 90% 92% 96% 88%
3.3 C# .NET Core #6 12.86 184,992 1603 35.74 71% 97% 54% 56%
3.4 Rust #2 13.36 135,812 1347 42.08 100% 67% 66% 82%
3.9 Go #4 15.07 145,496 1543 51.37 88% 94% 79% 80%
4.2 Lisp SBCL #6 16.17 512,664 2479 57.91 86% 98% 88% 86%
4.3 Chapel #2 16.63 293,520 1029 62.45 100% 93% 91% 91%
5.1 Lisp SBCL 19.63 505,728 2424 61.40 71% 82% 88% 71%
5.6 OCaml #3 21.77 255,576 1833 60.14 43% 43% 90% 100%
5.7 Swift #2 22.20 257,428 1367 84.23 94% 94% 93% 98%
6.8 Node js #3 26.33 396,388 1812 79.49 94% 59% 79% 70%
8.6 Lisp SBCL #5 33.51 154,000 2320 33.89 0% 36% 65% 0%
8.6 Lisp SBCL #4 33.57 154,040 2291 33.92 0% 0% 100% 1%
8.7 Rust 33.87 150,312 1078 100.39 53% 88% 92% 64%
8.7 Java #5 33.91 246,164 2219 78.45 28% 16% 94% 93%
9.2 Haskell GHC #2 35.91 637,624 1486 125.59 86% 86% 86% 91%
10 Dart #3 39.78 459,340 1502 107.60 53% 79% 52% 87%
10 Haskell GHC 39.92 522,092 1059 134.37 93% 81% 82% 81%
11 PHP #4 41.23 168,632 1079 132.54 66% 85% 76% 93%
15 Perl #4 56.62 1,069,148 476 190.22 70% 86% 87% 93%
15 Java #4 58.54 208,084 1882 59.83 26% 1% 0% 75%
16 Perl 61.77 1,253,436 652 205.95 82% 81% 82% 89%
16 Node js #2 62.71 1,633,236 935 201.03 77% 96% 76% 72%
17 Node js 67.29 1,686,984 1008 201.72 92% 69% 70% 69%
17 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%
24 Lisp SBCL #3 92.31 514,748 1290 100.89 99% 5% 3% 3%
24 Lisp SBCL #2 92.38 514,796 1284 93.35 68% 1% 0% 32%
27 Racket #4 103.62 419,736 885 104.71 99% 0% 1% 1%
27 Ruby #7 103.71 400,128 859 6 min 95% 85% 95% 89%
27 Ruby 105.63 146,104 644 6 min 95% 94% 88% 86%
31 Python 3 119.11 357,568 607 6 min 88% 96% 71% 80%
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%
49 Lua #2 189.90 521,716 613 191.07 1% 0% 99% 1%
50 Perl #2 194.78 659,552 359 194.59 0% 56% 43% 1%
65 Racket 251.05 1,345,320 547 254.16 43% 3% 4% 51%
68 Erlang HiPE 264.39 3,533,976 936 10 min 74% 44% 45% 78%
81 Matz's Ruby 5 min 127,080 644 17 min 93% 81% 82% 73%
94 Ruby #2 6 min 186,304 420 6 min 97% 1% 0% 3%
97 Julia 6 min 1,970,692 695 6 min 84% 2% 0% 15%
99 Ruby #3 6 min 194,380 540 6 min 17% 32% 30% 22%
168 VW Smalltalk #5 10 min 385,272 1317 10 min 90% 1% 0% 10%
226 VW Smalltalk 14 min 385,872 1110 14 min 39% 34% 24% 4%
235 Matz's Ruby #2 15 min 168,304 420 15 min 62% 1% 2% 37%
247 Dart 16 min 464,632 610 16 min 57% 3% 1% 41%
300 Matz's Ruby #7 19 min 435,660 870 1h 04 min 80% 88% 78% 84%
355 Matz's Ruby #3 22 min 168,504 540 23 min 4% 54% 36% 7%
Intel Fortran Make Error
OCaml Make Error
OCaml #2 Make Error
Rust #8 Make Error
Rust #7 Make Error
Swift Make Error