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 179.62 126,924 644 9 min 95% 69% 67% 98%
1.0 C gcc 3.43 130,252 1506 11.17 90% 92% 88% 56%
1.0 Rust #7 2.64 131,408 1578 8.41 66% 86% 92% 75%
1.1 Rust #8 3.18 133,412 1543 9.99 64% 92% 85% 73%
1.1 Rust #5 4.20 133,820 1739 12.46 95% 63% 45% 95%
1.1 Rust #3 4.45 133,892 1661 12.72 64% 90% 90% 42%
1.1 Python 3 #3 48.51 134,372 1967 185.66 94% 100% 94% 95%
1.1 Rust #9 6.41 134,928 1841 17.98 37% 94% 97% 52%
1.1 Rust #2 6.43 135,940 1347 16.87 45% 44% 73% 100%
1.1 Rust #4 6.82 136,152 1749 19.23 96% 39% 94% 53%
1.1 Rust #6 6.95 136,280 1671 19.31 44% 91% 94% 49%
1.1 Ruby 76.08 145,060 644 267.12 79% 79% 96% 98%
1.1 Go #4 9.08 145,708 1543 31.29 88% 98% 69% 89%
1.2 Rust 23.54 150,008 1078 64.95 95% 50% 49% 81%
1.2 Go #3 8.16 150,376 1722 31.09 97% 97% 96% 91%
1.2 Go #6 8.19 150,556 1590 30.92 96% 96% 88% 98%
1.2 Lisp SBCL #5 16.45 153,976 2320 16.50 0% 100% 0% 0%
1.2 Lisp SBCL #4 16.43 154,012 2291 16.46 0% 100% 0% 0%
1.2 C++ g++ #2 1.98 156,108 1631 5.92 96% 67% 68% 68%
1.3 Go #7 8.19 160,020 1607 31.54 95% 99% 95% 96%
1.3 C++ g++ #3 4.30 165,844 1276 14.35 80% 97% 78% 79%
1.3 Matz's Ruby #2 7 min 168,008 420 7 min 100% 0% 0% 0%
1.3 Matz's Ruby #3 11 min 168,844 540 11 min 0% 0% 0% 100%
1.4 Chapel #3 9.63 177,496 989 35.75 100% 89% 92% 91%
1.4 F# .NET Core #6 3.95 182,004 1907 12.46 94% 78% 78% 66%
1.4 C# .NET Core 3.29 182,572 2044 11.14 71% 94% 89% 85%
1.4 C# .NET Core #6 7.27 183,664 1603 20.31 55% 73% 54% 97%
1.5 Swift #2 14.10 185,448 1367 54.12 98% 95% 96% 96%
1.5 Ruby #2 227.08 185,976 420 228.86 0% 0% 0% 100%
1.5 F# .NET Core #2 6.03 193,492 1926 22.35 94% 96% 91% 90%
1.5 Ruby #3 251.96 194,820 540 254.13 28% 28% 23% 22%
1.6 Java  #4 36.06 198,300 1882 36.91 1% 1% 40% 61%
1.6 Java #5 18.30 205,144 2219 42.04 82% 32% 16% 100%
1.7 PHP #4 24.68 215,640 1079 88.67 93% 81% 96% 89%
2.0 OCaml #3 15.08 255,464 1833 40.16 40% 36% 96% 95%
2.0 Python 3 76.50 256,404 607 257.52 79% 65% 96% 96%
2.0 Ada 2012 GNAT #2 6.21 258,432 4908 13.98 86% 17% 90% 32%
2.5 Lisp SBCL #3 62.35 317,440 1290 63.54 1% 100% 0% 0%
2.5 Lisp SBCL #2 62.18 317,444 1284 62.58 0% 43% 0% 58%
2.8 Julia #7 6.96 359,976 1365 17.46 44% 63% 78% 65%
2.8 Julia #8 4.76 360,120 945 10.77 78% 56% 38% 53%
3.0 VW Smalltalk #5 6 min 380,496 1317 7 min 0% 0% 0% 100%
3.0 Lisp SBCL 12.28 382,932 2424 39.30 98% 73% 74% 75%
3.0 VW Smalltalk 9 min 384,952 1110 9 min 0% 55% 0% 46%
3.1 Node js #3 15.41 392,344 1812 42.69 45% 93% 61% 78%
3.1 Ruby #7 68.79 399,736 859 240.00 96% 80% 82% 91%
3.2 Java 4.88 409,508 1812 15.86 75% 88% 86% 77%
3.3 Java #3 7.40 418,800 1635 25.99 87% 93% 85% 86%
3.3 Java #6 7.42 418,968 1607 26.09 91% 92% 85% 84%
3.3 Matz's Ruby #7 10 min 419,052 870 34 min 97% 100% 71% 66%
3.3 Racket #4 52.74 419,632 885 53.08 0% 0% 100% 0%
3.6 Dart 9 min 455,392 610 9 min 0% 0% 100% 0%
4.0 Python 3 #8 86.59 501,516 655 259.66 59% 86% 58% 97%
4.1 Dart #3 24.01 515,616 1502 64.08 95% 87% 47% 38%
4.1 Haskell GHC 20.11 522,844 1059 74.17 94% 90% 95% 91%
4.2 Lisp SBCL #6 10.21 538,444 2479 37.25 89% 98% 88% 90%
4.7 Lua #2 118.07 591,920 613 118.65 0% 0% 100% 0%
5.2 Perl #2 112.43 659,912 359 113.05 100% 0% 0% 0%
6.0 C++ g++ 7.01 756,268 1446 14.69 93% 90% 9% 18%
6.0 Haskell GHC #2 22.67 756,900 1486 88.50 98% 97% 98% 97%
6.5 Erlang HiPE #3 84.67 830,416 937 238.48 68% 75% 61% 78%
8.4 Perl #4 40.77 1,069,180 476 129.15 61% 96% 66% 94%
9.0 Perl #3 52.64 1,147,316 513 169.08 70% 64% 91% 95%
9.9 Perl 37.86 1,253,064 652 132.61 84% 95% 87% 85%
11 Racket 138.35 1,345,132 547 139.96 1% 0% 0% 100%
15 Node js 38.88 1,848,844 1008 116.33 64% 65% 77% 93%
15 Node js #2 36.49 1,869,520 935 113.54 79% 72% 80% 80%
15 Julia 196.88 1,938,528 695 196.79 0% 99% 0% 0%
59 Erlang HiPE 88.74 7,447,348 936 247.55 67% 61% 91% 60%
Intel Fortran Make Error
OCaml #2 Make Error
OCaml Make Error
Swift Make Error