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