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.3 Rust #9 5.17 135,372 1841 15.76 80% 100% 56% 69%
1.4 Rust #4 5.31 135,064 1749 16.97 91% 56% 98% 74%
1.4 C# .NET Core 5.61 185,068 2044 18.05 77% 82% 70% 93%
1.5 Rust #6 5.75 135,332 1671 17.40 68% 52% 95% 88%
1.5 F# .NET Core #6 5.86 184,236 1907 19.51 93% 72% 83% 85%
2.0 C++ g++ #3 7.61 165,776 1276 25.08 78% 76% 98% 78%
2.4 Java  9.33 447,976 1812 29.36 73% 83% 82% 77%
2.5 F# .NET Core #2 9.79 199,748 1926 35.78 96% 91% 87% 92%
2.6 F# .NET Core #5 10.29 199,152 1959 36.66 96% 87% 85% 88%
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 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.1 Go #6 12.22 150,732 1590 45.56 97% 92% 91% 93%
3.3 Julia #7 12.72 351,136 1365 31.59 77% 69% 56% 47%
3.3 C# .NET Core #6 12.86 184,992 1603 35.74 71% 97% 54% 56%
3.3 C# .NET Core #5 12.98 184,700 2319 36.13 98% 57% 93% 31%
3.5 Go #3 13.41 150,716 1722 51.02 95% 99% 91% 96%
3.5 Rust #2 13.58 135,508 1347 42.18 79% 84% 64% 84%
3.9 C# .NET Core #7 15.34 661,628 1838 50.40 76% 91% 83% 79%
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%
4.4 Go #4 17.26 145,280 1543 59.52 86% 81% 89% 89%
5.0 F# .NET Core #4 19.52 1,180,400 1509 63.02 87% 83% 70% 82%
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.4 C# .NET Core #4 24.72 796,900 1702 87.33 88% 91% 88% 86%
6.4 F# .NET Core #3 24.91 1,219,724 1111 62.19 44% 36% 91% 79%
6.6 Node js #3 25.55 396,948 1812 78.03 78% 72% 85% 71%
7.8 C# .NET Core #3 30.14 697,172 1404 92.88 74% 74% 67% 94%
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.9 Rust 34.46 154,812 1078 100.05 84% 88% 51% 68%
9.1 Java #5 35.35 243,300 2219 78.57 30% 94% 21% 77%
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 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%
16 Node js #2 61.92 1,660,364 935 199.56 89% 73% 78% 82%
16 F# .NET Core 62.82 802,072 701 211.56 89% 83% 81% 84%
17 Node js 66.35 1,641,416 1008 201.96 75% 71% 79% 80%
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 C# .NET Core #2 126.98 1,062,872 1018 133.21 74% 11% 14% 6%
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%
94 Julia 6 min 1,951,636 695 6 min 68% 3% 26% 4%
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%
C# .NET Core #9 Failed
C# .NET Core #8 Failed
Intel Fortran Make Error
OCaml Make Error
OCaml #2 Make Error
Rust #8 Make Error
Rust #5 Make Error
Rust #7 Make Error
Rust #3 Make Error
TypeScript Failed
Swift Make Error