k-nucleotide First, here are half-a-dozen naive un-optimised single-thread #8 programs transliterated lowest-common-denominator style into different programming languages from the same original — source secs mem gz Go #8 61.96 537,908 752 Ruby yjit #8 13 min 572,736 529 Python 3 #8 238.78 623,448 525 PHP #8 79.41 629,652 571 Node.js #8 144.82 692,816 678 Java #8 81.36 1,559,968 786 Here are the crowd sourced programs — × source secs mem gz cpu secs cpu load 1.0 C gcc 3.84 130,408 1512 12.45 90% 78% 97% 59% 1.0 Rust #7 2.67 133,824 1585 8.21 88% 62% 88% 71% 1.0 Rust #9 6.63 136,168 1850 17.12 95% 81% 45% 36% 1.1 Rust #4 6.73 137,308 1755 18.72 99% 95% 39% 45% 1.1 Rust #3 3.21 137,564 1549 9.51 64% 83% 90% 58% 1.1 Rust #5 3.82 137,924 1745 11.17 91% 42% 59% 99% 1.1 Rust #2 5.87 138,292 1350 15.32 74% 46% 47% 95% 1.1 Go #4 9.16 140,032 1552 31.38 97% 86% 73% 86% 1.1 Go #6 8.21 145,152 1596 30.01 94% 99% 85% 86% 1.1 Go #3 8.18 145,280 1729 29.88 96% 84% 84% 99% 1.1 Matz's Ruby 192.78 147,368 583 10 min 92% 72% 66% 93% 1.2 C++ g++ #2 2.01 156,592 1634 5.98 73% 90% 68% 67% 1.2 Rust 21.46 157,492 1086 66.75 95% 64% 97% 54% 1.2 Rust #6 2.80 159,764 1697 10.03 98% 85% 87% 87% 1.2 Lisp SBCL #4 15.67 160,384 2292 15.67 0% 100% 0% 1% 1.2 Lisp SBCL #5 15.83 160,512 2323 15.83 0% 0% 0% 100% 1.3 Go #7 7.63 163,072 1613 28.79 93% 93% 95% 97% 1.3 C++ g++ #3 4.19 165,580 1280 13.94 79% 76% 81% 97% 1.3 Matz's Ruby #2 8 min 168,320 426 8 min 100% 0% 0% 0% 1.3 Matz's Ruby #3 12 min 168,832 546 12 min 100% 0% 0% 0% 1.3 Ruby yjit 86.11 171,696 583 5 min 97% 98% 77% 79% 1.4 C# .NET #6 5.63 180,500 1615 14.88 96% 76% 46% 46% 1.4 C# .NET 3.18 181,724 2046 10.77 89% 72% 90% 88% 1.4 Ruby yjit #2 252.78 181,808 426 252.58 99% 0% 0% 0% 1.4 F# .NET #6 3.71 188,232 1913 11.97 81% 94% 66% 81% 1.5 Java #4 34.33 197,748 1887 34.67 0% 99% 0% 0% 1.6 F# .NET #5 4.62 202,244 1964 15.77 78% 76% 96% 90% 1.6 F# .NET #2 4.79 202,524 1932 16.18 95% 77% 75% 90% 1.6 Chapel #4 5.15 202,548 1074 17.53 99% 81% 83% 83% 1.6 Chapel #3 6.14 203,208 1044 21.26 99% 83% 83% 85% 1.6 Ruby yjit #3 277.67 207,596 546 277.88 22% 26% 22% 29% 1.7 Dart #3 18.50 221,428 1526 55.76 72% 56% 99% 73% 1.7 Java #5 22.10 222,396 2225 48.14 95% 19% 71% 31% 2.0 Ada 2012 GNAT #2 7.68 259,780 4911 16.65 87% 69% 20% 40% 2.0 PHP #4 25.74 259,940 1290 90.19 78% 79% 94% 99% 2.0 Python 3 #3 50.15 262,368 1970 185.77 98% 90% 91% 91% 2.7 Node.js 39.98 356,716 1011 117.63 78% 76% 78% 60% 2.9 Python 3 #9 68.33 379,392 614 238.74 85% 91% 96% 76% 3.0 VW Smalltalk #5 7 min 385,348 1323 7 min 0% 100% 0% 0% 3.0 VW Smalltalk 9 min 385,972 1116 9 min 1% 99% 0% 0% 3.0 Ruby yjit #7 5 min 392,960 792 298.86 32% 27% 27% 12% 3.3 Java #6 7.27 426,032 1614 25.17 85% 85% 88% 88% 3.3 Java #3 7.34 426,540 1642 25.47 88% 88% 87% 84% 3.3 Java 4.92 427,448 1821 15.77 73% 86% 85% 76% 3.3 Julia #6 6.03 429,688 965 14.32 80% 36% 67% 53% 3.3 Node.js #3 16.48 436,784 1817 44.54 79% 55% 77% 59% 3.6 Dart 9 min 464,108 628 9 min 47% 50% 1% 0% 3.7 Julia #7 8.87 479,756 1379 22.94 76% 72% 49% 61% 3.7 Node.js #2 38.24 486,844 941 112.58 67% 74% 91% 61% 3.8 Python 3 238.45 499,072 499 237.78 99% 0% 0% 0% 3.9 Python 3 #4 79.01 506,112 663 236.67 61% 78% 73% 86% 3.9 Lisp SBCL #3 45.19 511,488 1297 45.18 0% 0% 100% 0% 3.9 Lisp SBCL #2 44.40 511,488 1291 44.39 0% 100% 0% 0% 4.0 Lisp SBCL #6 8.76 518,912 2485 31.45 86% 97% 87% 88% 4.0 Dart #8 9 min 524,768 676 9 min 48% 51% 0% 0% 4.1 Go #8 61.96 537,908 752 62.57 41% 34% 0% 24% 4.4 Lisp SBCL 10.77 570,368 2431 33.53 99% 71% 71% 70% 4.4 Ruby yjit #8 13 min 572,736 529 13 min 0% 100% 0% 0% 4.6 Lua #2 97.17 596,604 620 97.16 94% 0% 6% 0% 4.7 C# .NET #4 12.06 612,408 1725 42.10 89% 87% 85% 89% 4.7 C# .NET #7 42.74 613,184 1449 43.35 38% 44% 1% 17% 4.8 Python 3 #8 238.78 623,448 525 237.93 46% 52% 0% 0% 4.8 Swift #7 233.16 627,092 607 232.52 54% 44% 0% 1% 4.8 Swift #8 181.50 627,328 658 180.87 54% 45% 0% 0% 4.8 PHP #8 79.41 629,652 571 79.39 44% 55% 0% 0% 5.1 Perl #2 139.32 659,584 365 137.50 0% 0% 0% 98% 5.3 Node.js #8 144.82 692,816 678 145.44 50% 49% 0% 0% 5.8 C++ g++ 6.96 757,156 1452 14.75 78% 91% 24% 17% 6.1 Haskell GHC 24.77 789,504 1067 87.14 85% 95% 86% 86% 7.0 F# .NET 27.63 910,836 713 89.96 79% 78% 79% 89% 7.2 Racket #4 62.77 936,732 893 62.76 0% 100% 0% 0% 8.2 Perl #4 45.38 1,070,336 483 151.76 98% 72% 71% 92% 8.8 Perl #3 56.61 1,148,032 520 193.68 79% 95% 94% 74% 9.6 Perl 43.90 1,247,396 659 154.01 92% 87% 86% 85% 10 F# .NET #4 11.31 1,316,416 1522 30.18 50% 81% 47% 89% 10 F# .NET #3 12.67 1,318,584 1124 28.91 85% 77% 44% 23% 11 C# .NET #8 75.28 1,370,624 736 76.44 3% 3% 16% 79% 12 Julia 132.60 1,558,404 703 132.21 55% 42% 1% 0% 12 Java #8 81.36 1,559,968 786 83.57 31% 29% 17% 24% 20 Racket 193.48 2,579,776 554 191.42 0% 97% 0% 1% Erlang Timed Out Erlang #3 Timed Out Intel Fortran Make Error Matz's Ruby #8 Failed Matz's Ruby #7 Failed Swift Make Error * possible hand-written vector instructions | "unsafe" × source secs mem gz cpu secs cpu load 2.0 * OCaml #3 16.29 258,556 1839 43.41 38% 90% 46% 92% 2.0 * Swift #2 14.54 260,820 1373 55.20 94% 93% 97% 95% 2.4 * OCaml #2 27.45 314,312 1247 61.90 21% 76% 95% 32% 2.6 * OCaml 45.59 338,436 894 45.59 0% 100% 0% 0% 4.1 * Haskell GHC #3 38.56 537,856 2266 138.53 91% 90% 90% 90% 6.4 * Haskell GHC #2 23.53 839,040 1492 91.08 96% 96% 98% 96% by secs by mem by gz by cpu secs