The Computer Language
Benchmarks Game

k-nucleotide

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Rust #7 5.61 138,052 1647 16.38 81% 100% 49% 63%
1.2 C gcc 6.67 130,160 1506 19.33 76% 50% 92% 75%
1.4 C++ g++ #3 7.75 165,180 1276 26.02 80% 96% 82% 79%
1.6 Java  8.70 375,568 1812 27.17 80% 72% 74% 88%
1.9 F# .NET Core #2 10.43 195,348 1926 36.77 96% 88% 84% 86%
1.9 F# .NET Core #5 10.44 195,944 1959 38.11 95% 92% 92% 86%
2.0 Ada 2005 GNAT #2 11.32 258,596 4908 25.26 30% 65% 42% 87%
2.0 C# .NET Core #8 11.47 189,036 2044 40.36 96% 95% 74% 87%
2.1 C++ g++ 11.52 756,276 1446 24.11 88% 13% 21% 90%
2.1 Java #6 12.03 371,972 1607 40.78 87% 81% 81% 90%
2.2 Java #3 12.20 372,564 1635 41.63 82% 83% 82% 94%
2.2 C# .NET Core #9 12.31 201,500 2283 39.45 78% 74% 97% 73%
2.3 Go #3 12.72 148,012 1722 47.51 93% 96% 92% 92%
2.4 C# .NET Core #5 13.37 181,368 2319 37.80 96% 31% 97% 60%
2.5 Go #6 14.22 147,984 1590 50.89 79% 87% 97% 96%
2.5 C# .NET Core #6 14.25 184,192 1603 38.18 97% 72% 50% 51%
3.0 C# .NET Core #7 16.67 841,468 1838 53.91 92% 76% 76% 82%
3.1 Lisp SBCL #6 17.37 542,680 2479 63.34 88% 89% 100% 88%
3.3 Chapel 18.31 293,140 1063 66.47 100% 88% 88% 88%
3.4 F# .NET Core #4 19.29 1,198,184 1509 62.95 90% 80% 75% 83%
3.9 OCaml #3 21.63 255,436 1833 57.55 47% 39% 94% 89%
3.9 Rust #2 21.64 137,828 1347 61.60 45% 89% 62% 89%
3.9 Lisp SBCL 21.71 382,488 2424 67.69 71% 100% 71% 70%
3.9 Swift #2 21.75 259,972 1366 80.88 91% 91% 96% 95%
4.5 Swift 25.01 181,472 1231 83.58 79% 80% 80% 96%
4.8 C# .NET Core #4 26.77 777,296 1702 94.57 87% 95% 89% 83%
4.8 F# .NET Core #3 26.92 1,244,556 1111 65.24 77% 55% 79% 33%
6.0 Dart #2 33.48 2,043,956 2467 91.87 58% 71% 80% 67%
6.1 Java #5 34.24 223,012 2219 76.96 50% 92% 20% 65%
6.2 Haskell GHC #2 35.01 644,356 1486 122.09 86% 87% 89% 97%
6.6 Lisp SBCL #5 37.12 152,812 2320 37.09 0% 62% 38% 0%
6.7 Lisp SBCL #4 37.54 152,780 2291 37.51 0% 1% 1% 100%
6.7 Haskell GHC 37.81 523,440 1059 141.49 95% 94% 92% 96%
7.4 PHP #4 41.39 242,044 1079 133.27 83% 76% 73% 91%
8.1 Go #2 45.38 265,288 1560 131.57 92% 53% 96% 49%
8.5 Rust 47.49 152,592 1078 132.75 53% 50% 80% 100%
9.3 Go 52.18 391,312 986 176.10 76% 95% 82% 86%
11 Hack #4 59.22 293,544 1081 201.51 90% 89% 77% 88%
11 Java #4 59.65 197,920 1882 60.76 10% 2% 90% 1%
11 Node.js #2 61.24 1,739,992 935 137.09 80% 75% 95% 71%
11 C# .NET Core #3 61.81 672,520 1404 201.93 74% 97% 80% 77%
11 Perl #4 64.22 1,068,544 476 215.42 78% 78% 83% 97%
12 Perl 65.91 1,253,764 652 226.02 87% 90% 88% 84%
12 Node.js 69.42 1,843,020 1008 144.14 86% 69% 78% 67%
12 Perl #3 69.99 1,146,448 513 234.72 71% 75% 94% 95%
13 F# .NET Core 72.69 850,760 701 228.94 78% 78% 82% 78%
14 Python 3 #3 77.65 182,700 1967 5 min 97% 99% 97% 98%
15 Racket #4 82.03 374,608 881 82.02 100% 1% 0% 0%
17 Ruby #7 95.27 381,212 858 5 min 97% 86% 86% 91%
18 C# .NET Core 98.44 724,320 1425 99.77 1% 98% 2% 1%
19 Ruby 108.47 131,572 637 6 min 95% 92% 88% 96%
20 Erlang HiPE #3 113.83 798,548 937 5 min 83% 67% 69% 70%
23 Python 3 131.60 309,992 607 6 min 94% 72% 76% 74%
24 Python 3 #8 133.80 496,140 655 6 min 92% 56% 96% 57%
25 C# .NET Core #2 137.99 1,057,704 1018 141.61 24% 28% 29% 23%
25 Lisp SBCL #3 140.47 320,176 1290 140.41 0% 17% 84% 0%
25 Lisp SBCL #2 141.07 320,176 1284 141.01 7% 0% 1% 93%
26 Erlang HiPE 143.45 3,270,888 936 5 min 73% 59% 62% 56%
33 Lua #2 184.25 513,992 613 183.19 81% 1% 1% 20%
39 Perl #2 218.34 658,792 359 218.24 0% 100% 1% 0%
42 Racket 234.93 1,316,664 542 234.84 0% 95% 6% 1%
44 Ruby JRuby 246.68 1,127,988 637 15 min 94% 97% 94% 93%
48 Ruby JRuby #3 270.04 1,122,188 540 16 min 95% 95% 93% 93%
55 Ruby MRI 5 min 126,784 637 16 min 67% 92% 72% 98%
55 Dart 5 min 411,572 610 5 min 10% 45% 47% 1%
68 Ruby #2 6 min 162,068 420 6 min 0% 1% 100% 0%
71 Ruby #3 6 min 159,688 540 6 min 50% 50% 1% 0%
116 Smalltalk VW #5 10 min 387,932 1303 10 min 39% 63% 34% 21%
154 Matz's Interpreter #2 14 min 168,116 420 14 min 57% 0% 1% 43%
241 Matz's Interpreter #3 22 min 168,380 540 22 min 32% 25% 43% 0%
Fortran Intel Failed
OCaml Make Error
OCaml #2 Make Error
Matz's Interpreter #7 Failed
Rust #6 Make Error
Rust #4 Make Error
Rust #5 Make Error
Rust #3 Make Error
TypeScript Failed