The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Go #6 0.48 88,820 1278 0.86 32% 48% 63% 44%
1.1 C gcc #4 1.10 101,228 704 1.09 1% 100% 0% 1%
1.4 Pascal Free Pascal #2 1.91 124,668 751 1.91 99% 0% 1% 1%
1.4 C++ g++ #3 1.15 127,108 810 1.14 2% 2% 99% 2%
1.4 Ada 2005 GNAT 2.74 127,528 885 2.73 1% 1% 0% 100%
1.5 C++ g++ #5 18.74 130,120 646 18.73 1% 1% 1% 100%
1.5 Haskell GHC #3 1.43 131,184 999 1.59 6% 6% 99% 2%
1.5 Ruby #2 8.14 133,304 255 8.13 100% 0% 0% 1%
1.6 OCaml #4 1.50 138,936 2064 1.50 1% 7% 4% 100%
1.6 C gcc #6 0.42 145,900 812 0.57 0% 26% 20% 100%
1.7 Fortran Intel 1.02 149,936 1013 1.01 0% 1% 1% 99%
1.9 Go #3 0.92 165,520 543 0.94 2% 90% 11% 2%
1.9 Go #2 0.92 165,740 546 0.94 3% 1% 12% 88%
2.0 Racket #2 4.23 179,400 1026 4.22 2% 0% 100% 1%
2.1 Fortran Intel #2 7.63 186,640 772 7.62 100% 1% 1% 0%
2.3 Ada 2005 GNAT #2 0.73 201,012 3220 0.85 36% 1% 80% 0%
2.4 OCaml #2 4.04 209,612 394 4.03 100% 1% 1% 0%
2.4 C++ g++ #4 0.59 217,564 2275 0.84 26% 78% 12% 34%
2.8 Node.js #7 3.68 245,496 1088 3.93 4% 4% 98% 2%
2.8 TypeScript 3.67 245,580 1131 3.94 99% 3% 4% 3%
2.8 Node.js #2 9.32 246,076 1202 9.61 2% 60% 41% 2%
2.8 C++ g++ #2 0.78 246,768 1082 1.02 95% 13% 18% 6%
2.8 C++ g++ 2.55 247,792 571 2.54 0% 0% 2% 100%
2.8 C gcc #5 0.70 249,652 638 0.70 0% 100% 0% 1%
2.8 C gcc #2 0.53 251,672 741 0.77 48% 81% 15% 19%
2.8 Rust 0.91 252,492 1807 1.16 98% 11% 23% 3%
2.9 Rust #3 0.63 254,208 1330 0.89 23% 94% 15% 17%
2.9 Rust #2 0.45 254,232 1324 0.76 25% 26% 28% 98%
2.9 Go 0.94 258,888 1243 1.07 52% 56% 3% 11%
3.0 Python 3 #6 2.93 265,636 800 4.28 80% 46% 21% 2%
3.2 Chapel 1.57 282,352 643 2.06 99% 16% 8% 14%
3.2 Swift 0.94 285,740 1287 1.12 54% 0% 47% 21%
3.3 Java  #5 1.69 293,400 1098 1.84 5% 4% 95% 7%
3.3 C# .NET Core 1.82 296,320 1099 1.82 1% 99% 3% 1%
3.7 C gcc 0.56 330,908 1867 0.90 43% 14% 84% 27%
3.7 Smalltalk VW 31.04 331,812 754 31.02 0% 1% 100% 1%
3.8 PHP 4.02 336,164 297 4.01 2% 0% 100% 0%
3.9 Java #3 1.11 345,308 1661 2.44 33% 58% 54% 80%
4.0 Go #5 1.25 358,652 926 1.74 17% 71% 10% 46%
4.2 Java #4 2.19 368,848 592 2.30 96% 3% 5% 5%
4.3 Perl #3 2.67 378,924 284 2.67 100% 0% 1% 0%
4.3 Scala #4 2.17 382,792 501 2.32 4% 2% 100% 5%
4.3 Lua #4 21.88 383,448 594 21.84 1% 61% 0% 40%
4.5 Clojure 3.05 397,508 1044 4.18 23% 77% 31% 11%
4.6 Lisp SBCL 2.11 406,464 896 2.11 0% 0% 100% 0%
4.6 Clojure #4 4.11 408,212 997 5.46 28% 39% 57% 13%
4.8 C++ g++ #6 1.45 424,332 1752 2.17 61% 21% 29% 41%
5.0 PHP #2 4.50 441,272 262 4.49 0% 100% 1% 1%
5.3 Racket 12.60 471,500 547 12.60 100% 1% 1% 0%
5.7 Ruby #3 4.03 505,656 509 7.14 51% 83% 37% 9%
5.8 Erlang HiPE #4 47.87 516,388 1167 62.83 56% 52% 15% 10%
5.9 Java #6 1.34 526,696 745 1.63 74% 3% 40% 9%
6.2 C# .NET Core #4 1.59 549,388 1708 2.23 25% 18% 20% 79%
6.5 Clojure #5 2.65 579,024 727 4.05 55% 20% 58% 23%
6.9 Erlang #4 40.53 609,092 1167 52.35 11% 21% 58% 42%
7.2 C# .NET Core #3 4.57 641,184 863 6.11 16% 39% 68% 14%
7.6 Ruby 5.66 671,980 536 10.35 93% 59% 27% 6%
7.8 F# .NET Core 11.13 690,736 588 11.51 3% 4% 96% 2%
8.3 Lua #2 17.44 740,584 553 17.43 100% 1% 1% 0%
8.4 C# .NET Core #2 1.37 750,404 1670 2.21 71% 49% 22% 24%
9.6 Erlang HiPE 10.86 855,552 1302 27.02 59% 63% 79% 50%
9.8 Haskell GHC #2 2.56 874,008 919 2.89 99% 4% 6% 6%
10 Erlang 9.36 902,492 1302 21.31 65% 65% 47% 53%
11 Python 3 #4 5.64 1,012,664 325 5.63 1% 1% 100% 1%
14 Erlang #3 68.35 1,230,964 624 70.04 52% 30% 23% 0%
16 Ruby JRuby #2 15.69 1,382,344 255 23.96 27% 20% 22% 87%
16 Erlang HiPE #3 58.94 1,396,036 624 62.15 12% 54% 39% 4%
19 Dart #2 29.21 1,720,276 555 34.59 43% 49% 15% 14%
19 Dart #3 22.98 1,728,640 551 28.28 18% 17% 23% 68%
26 Ruby JRuby #3 9.50 2,271,316 509 26.12 60% 81% 65% 72%
26 Ruby JRuby 9.09 2,283,300 536 25.64 80% 62% 71% 72%
Hack Bad Output
Hack #2 Bad Output
Java #7 Partial
OCaml Partial
OCaml #3 Partial
PHP #3 Partial