The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

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