The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ #2 3.73 156,080 1624 11.60 75% 70% 72% 96%
1.3 C gcc 4.88 130,060 1506 16.06 87% 96% 87% 60%
1.4 Rust #4 5.41 137,908 1749 17.41 77% 89% 57% 100%
1.5 C# .NET Core #9 5.48 186,672 2574 18.26 93% 85% 91% 67%
1.5 Rust #9 5.63 135,824 1841 16.99 91% 49% 76% 89%
1.5 Rust #6 5.74 137,980 1671 17.75 84% 84% 54% 89%
1.5 Rust #7 5.77 137,812 1648 17.74 84% 73% 82% 70%
2.0 C++ g++ #3 7.47 165,800 1276 24.48 77% 97% 77% 78%
2.3 Java  8.74 470,116 1812 27.12 71% 73% 93% 74%
2.5 C# .NET Core #8 9.26 186,960 2593 30.70 90% 80% 81% 81%
2.6 F# .NET Core #2 9.63 199,368 1926 34.97 87% 85% 96% 95%
2.7 Rust #3 9.98 137,448 1661 24.82 29% 61% 69% 90%
2.7 F# .NET Core #5 10.20 195,764 1959 35.63 85% 85% 96% 85%
2.8 Rust #5 10.28 137,464 1739 25.71 35% 88% 34% 94%
3.2 C++ g++ 11.77 756,304 1446 24.53 12% 10% 89% 98%
3.2 Go #7 12.09 158,320 1607 45.00 94% 92% 95% 92%
3.2 Ada 2012 GNAT #2 12.09 258,424 4908 25.29 18% 44% 62% 87%
3.2 Java #6 12.11 463,324 1607 40.71 79% 91% 87% 80%
3.4 Java #3 12.51 462,260 1635 42.29 82% 93% 85% 80%
3.4 Go #6 12.58 148,112 1590 47.16 95% 90% 95% 96%
3.5 Go #4 13.17 142,860 1543 44.73 90% 89% 96% 66%
3.5 C# .NET Core #6 13.19 186,312 1603 35.61 51% 72% 49% 100%
3.5 C# .NET Core #5 13.20 185,784 2319 36.40 57% 98% 30% 96%
3.8 Substrate VM 14.36 593,164 1812 42.59 99% 64% 67% 67%
4.0 Go #3 14.87 148,296 1722 51.66 76% 91% 82% 100%
4.2 C# .NET Core #7 15.76 712,192 1838 49.95 76% 81% 89% 72%
4.6 Chapel #2 17.06 292,976 1042 64.43 100% 93% 93% 93%
4.7 Lisp SBCL #6 17.37 542,076 2479 62.93 89% 100% 87% 88%
4.8 Rust #2 17.87 137,920 1347 48.98 57% 49% 83% 85%
5.3 Substrate VM #6 19.79 591,492 1607 63.25 73% 73% 75% 99%
5.4 F# .NET Core #4 20.03 1,187,968 1509 63.15 91% 78% 72% 75%
5.4 Substrate VM #3 20.19 591,344 1635 64.85 77% 75% 74% 96%
5.7 Lisp SBCL 21.20 316,240 2424 65.30 70% 99% 71% 69%
5.9 OCaml #3 22.04 255,528 1833 57.20 41% 70% 57% 93%
6.3 Go #2 23.50 271,724 1560 82.95 86% 90% 99% 79%
6.9 C# .NET Core #4 25.60 704,952 1702 89.26 86% 84% 85% 95%
7.4 F# .NET Core #3 27.69 1,251,140 1111 64.45 34% 44% 77% 79%
7.5 C# .NET Core #3 28.09 701,012 1404 91.53 81% 95% 81% 70%
7.8 Swift #2 29.06 261,872 1366 112.27 96% 96% 96% 99%
8.3 Swift 30.80 171,280 1231 115.62 93% 92% 93% 98%
8.7 Go 32.50 418,644 986 124.07 98% 99% 96% 90%
8.7 Dart app-jit #3 32.58 420,252 1502 85.04 89% 34% 83% 56%
9.4 Haskell GHC #2 35.19 617,884 1486 122.75 87% 87% 88% 88%
9.7 Java #5 36.24 228,288 2219 78.36 58% 82% 25% 51%
9.9 Lisp SBCL #4 36.86 152,180 2291 36.82 0% 0% 0% 100%
10 Lisp SBCL #5 36.96 152,340 2320 36.93 0% 100% 1% 0%
10 Substrate VM #5 38.25 183,460 2219 88.76 84% 85% 20% 45%
10 Dart #3 38.48 466,668 1502 100.73 78% 88% 47% 51%
11 Rust 39.58 152,808 1078 115.63 72% 87% 62% 72%
11 Haskell GHC 39.98 496,860 1059 140.61 90% 87% 86% 91%
11 PHP #4 41.29 250,628 1079 134.20 74% 78% 90% 90%
16 Perl #4 59.16 1,068,524 476 185.31 71% 87% 70% 87%
16 Java #4 59.75 195,100 1882 60.69 1% 1% 100% 1%
17 Perl 63.35 1,250,604 652 214.73 85% 83% 85% 89%
17 F# .NET Core 64.74 830,128 701 209.18 87% 81% 79% 78%
17 Node js #2 64.78 1,822,300 935 137.52 95% 70% 78% 69%
17 Node js 64.89 1,243,924 1008 138.09 68% 68% 79% 91%
18 Perl #3 68.63 1,146,424 513 232.46 91% 94% 74% 80%
20 Python 3 #3 72.80 189,720 1967 276.09 95% 96% 98% 94%
21 Substrate VM #4 79.56 161,304 1882 79.51 0% 100% 0% 1%
25 C# .NET Core 92.19 722,312 1425 93.41 2% 21% 1% 78%
25 Racket #4 92.75 379,748 885 92.75 0% 100% 0% 0%
26 Fortran Intel 97.11 203,140 2238 97.05 1% 0% 0% 100%
31 Python 3 115.19 278,292 607 6 min 80% 92% 72% 96%
32 Truffle Ruby #7 117.64 1,453,232 880 6 min 96% 86% 85% 76%
33 Erlang HiPE #3 121.75 716,452 937 5 min 72% 72% 70% 80%
33 Python 3 #8 124.13 459,112 655 6 min 91% 91% 58% 64%
34 Lisp SBCL #3 125.23 316,768 1290 124.42 4% 1% 1% 95%
34 Lisp SBCL #2 125.73 316,756 1284 124.82 11% 0% 1% 89%
36 C# .NET Core #2 133.55 979,892 1018 134.06 63% 20% 21% 9%
38 Erlang HiPE 142.79 3,288,332 936 6 min 68% 65% 74% 61%
44 TypeScript 165.71 444,804 719 166.46 41% 9% 11% 41%
49 Lua #2 182.10 588,696 613 181.16 1% 1% 99% 1%
49 Julia #2 183.99 2,567,096 1014 11 min 98% 91% 92% 88%
51 Ruby 189.81 137,920 667 11 min 94% 97% 96% 91%
52 Ruby #7 194.51 386,844 880 12 min 97% 90% 91% 97%
55 Perl #2 205.02 659,080 359 201.70 1% 27% 72% 0%
66 Racket 245.02 1,349,840 547 245.02 100% 0% 1% 0%
70 Truffle Ruby #3 261.78 1,867,508 540 15 min 93% 89% 89% 90%
72 Truffle Ruby 269.44 1,999,876 667 16 min 94% 92% 87% 91%
83 Matz's Ruby 5 min 126,652 637 16 min 95% 68% 84% 81%
99 Ruby #2 6 min 169,060 420 6 min 44% 57% 7% 7%
101 Julia 6 min 1,586,980 695 6 min 99% 0% 1% 1%
105 Ruby #3 6 min 170,988 540 7 min 20% 22% 35% 35%
150 Truffle Ruby #2 9 min 1,826,456 420 10 min 36% 24% 15% 37%
169 VW Smalltalk #5 10 min 384,800 1320 10 min 14% 0% 1% 86%
237 Dart app-jit 14 min 453,652 610 14 min 0% 1% 100% 0%
241 Matz's Ruby #2 14 min 167,896 420 14 min 15% 73% 13% 0%
242 Dart 15 min 465,060 610 15 min 23% 0% 1% 77%
362 Matz's Ruby #3 22 min 168,248 540 22 min 47% 54% 0% 0%
Dart #2 Failed
Dart app-jit #2 Failed
OCaml Make Error
OCaml #2 Make Error
Matz's Ruby #7 Failed
JRuby #3 Bad Output
JRuby Bad Output
Rust #8 Make Error