The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Rust #2 0.37 250,708 1376 0.66 100% 28% 28% 31%
1.3 C gcc #6 0.48 200,492 820 0.66 4% 19% 25% 98%
1.5 Go #6 0.54 132,404 1338 0.91 25% 28% 58% 60%
1.5 Rust #3 0.55 250,784 1382 0.83 17% 19% 20% 100%
1.6 C gcc #2 0.57 249,600 750 0.82 19% 19% 42% 70%
1.7 C gcc 0.62 399,852 1874 0.91 10% 26% 32% 84%
1.8 C++ g++ #4 0.64 247,800 2280 1.03 89% 22% 31% 30%
1.9 Ada 2005 GNAT #2 0.71 199,336 3283 0.84 82% 0% 0% 38%
1.9 C gcc #5 0.71 249,564 647 0.71 0% 56% 48% 0%
2.1 C# .NET Core #6 0.78 281,492 1621 1.84 71% 42% 90% 42%
2.2 OCaml 0.79 ? 1368 ? 48% 59% 74% 58%
2.2 Rust 0.80 250,692 1871 1.06 23% 27% 74% 14%
2.2 F# .NET Core #2 0.82 304,232 1608 1.67 46% 36% 81% 49%
2.2 C++ g++ #2 0.82 247,220 1087 1.10 76% 39% 12% 15%
2.4 Go 0.88 257,852 1254 1.01 20% 11% 10% 76%
2.5 Go #3 0.91 165,912 605 0.94 7% 86% 1% 12%
2.6 Go #2 0.96 165,940 611 0.99 89% 1% 0% 14%
2.7 Swift 1.00 285,556 1287 1.18 80% 1% 36% 2%
2.8 Java  #8 1.03 191,064 2183 2.31 52% 57% 43% 74%
2.8 C++ g++ #3 1.03 127,284 840 1.03 2% 1% 1% 99%
3.0 C gcc #4 1.10 125,820 709 1.09 100% 1% 0% 5%
3.2 Fortran Intel 1.17 121,864 1019 1.16 100% 0% 1% 2%
3.2 C# .NET Core #5 1.18 281,688 1613 1.86 14% 22% 39% 86%
3.8 Java #3 1.39 374,144 1722 2.90 50% 40% 72% 50%
3.8 Haskell GHC #3 1.40 128,808 1020 1.46 2% 5% 2% 99%
3.8 C++ g++ #6 1.41 402,684 1832 1.99 65% 35% 25% 21%
3.8 Go #5 1.41 409,884 996 1.81 39% 68% 1% 22%
4.0 C# .NET Core #4 1.47 472,376 1714 2.08 30% 69% 20% 28%
4.0 C# .NET Core #2 1.47 726,040 1674 2.34 49% 38% 72% 4%
4.3 Java #6 1.58 535,632 752 1.92 31% 9% 81% 4%
4.6 Chapel 1.68 258,680 643 2.26 99% 16% 6% 17%
4.7 C# .NET Core 1.70 280,604 1109 1.70 1% 87% 13% 1%
4.7 Java #5 1.70 310,760 1108 1.97 5% 44% 64% 5%
5.4 Pascal Free Pascal #2 1.99 124,364 771 1.99 2% 0% 0% 100%
6.4 Java #4 2.33 510,844 651 2.53 6% 44% 57% 4%
6.7 Ada 2005 GNAT 2.44 130,840 937 2.43 0% 100% 1% 0%
6.8 Perl #3 2.48 377,192 287 2.48 1% 0% 0% 100%
7.0 Lisp SBCL 2.58 269,616 904 2.57 3% 0% 0% 100%
7.2 Haskell GHC #2 2.63 932,120 982 2.79 2% 100% 3% 2%
7.5 C++ g++ 2.75 247,388 592 2.74 3% 100% 0% 0%
7.6 PHP #3 2.79 ? 438 ? 30% 35% 32% 57%
8.9 Python 3 #6 3.26 264,596 814 4.67 18% 99% 1% 26%
9.6 PHP 3.52 374,572 312 3.51 1% 1% 0% 100%
11 PHP #2 3.94 453,520 274 3.94 1% 1% 0% 100%
11 Ruby #3 4.03 505,656 509 7.14 51% 83% 37% 9%
11 TypeScript 4.11 242,780 1484 4.39 2% 23% 82% 2%
11 Node.js #7 4.18 241,932 1103 4.44 2% 47% 58% 2%
12 Racket #2 4.24 184,284 1026 4.23 100% 1% 1% 0%
13 C# .NET Core #3 4.78 587,368 915 6.07 11% 14% 10% 95%
15 Ruby MRI #3 5.62 506,888 517 9.05 19% 32% 35% 77%
15 Ruby 5.66 671,980 536 10.35 93% 59% 27% 6%
16 Python 3 #4 5.95 1,012,704 335 5.94 0% 1% 100% 0%
16 Node.js #2 6.01 243,656 1221 6.28 2% 71% 32% 2%
17 Java #7 6.13 ? 1647 ? 41% 14% 11% 53%
22 Fortran Intel #2 7.89 173,948 772 7.88 0% 100% 1% 0%
22 Ruby #2 8.14 133,304 255 8.13 100% 0% 0% 1%
24 Ruby JRuby #3 8.77 2,206,072 509 24.43 76% 66% 70% 69%
26 Matz's Interpreter #2 9.56 126,664 264 9.55 0% 1% 100% 0%
28 Ruby JRuby 10.29 2,416,972 536 31.43 74% 74% 78% 83%
29 C++ g++ #5 10.45 171,160 720 10.45 0% 1% 0% 100%
31 Erlang HiPE 11.34 955,484 1302 27.14 48% 62% 77% 54%
32 F# .NET Core 11.69 1,184,692 595 12.95 33% 5% 5% 70%
36 Racket 13.20 474,536 547 13.19 14% 0% 1% 87%
46 Ruby JRuby #2 16.89 1,123,272 255 25.13 20% 58% 26% 47%
48 Lua #2 17.55 739,380 553 17.53 0% 1% 100% 0%
60 Lua #4 21.96 383,856 594 21.95 100% 0% 0% 0%
65 Dart #3 23.94 1,712,776 555 29.44 52% 35% 15% 23%
82 Dart #2 30.07 1,708,132 561 35.59 15% 20% 29% 55%
84 Smalltalk VW 30.82 332,960 906 30.78 1% 1% 1% 100%
116 Erlang HiPE #4 42.53 557,420 1171 57.91 81% 13% 12% 32%
160 Erlang HiPE #3 58.64 1,267,844 630 62.85 40% 30% 21% 17%
Hack #2 Bad Output
Hack Bad Output
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Matz's Interpreter Failed