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.49 88,056 1278 0.87 27% 43% 28% 81%
1.2 C gcc #4 1.08 102,984 704 1.08 2% 0% 3% 100%
1.4 Pascal Free Pascal #2 1.92 124,784 751 1.92 2% 1% 100% 0%
1.4 Ada 2005 GNAT 2.73 126,808 885 2.73 1% 3% 100% 1%
1.4 C++ g++ #3 1.13 127,072 810 1.12 4% 100% 3% 1%
1.5 Haskell GHC #3 1.39 132,176 999 1.52 4% 4% 100% 4%
1.5 Ruby #2 8.14 133,304 255 8.13 100% 0% 0% 1%
1.6 OCaml #4 1.50 139,580 2064 1.49 1% 100% 6% 4%
1.6 C gcc #6 0.42 143,948 812 0.58 15% 26% 98% 2%
1.7 Fortran Intel 1.02 150,284 1013 1.01 100% 1% 1% 0%
1.8 C++ g++ #5 19.01 160,680 646 19.00 1% 0% 100% 1%
1.9 Go #3 0.92 165,508 543 0.95 0% 3% 9% 90%
1.9 Go #2 0.91 165,828 546 0.94 2% 90% 10% 3%
2.0 Fortran Intel #2 8.01 177,800 772 8.00 1% 1% 100% 1%
2.2 Racket #2 4.26 192,884 1026 4.25 1% 0% 2% 100%
2.3 Ada 2005 GNAT #2 0.69 202,188 3220 0.80 80% 6% 1% 35%
2.4 OCaml #2 4.33 210,448 394 4.32 0% 2% 100% 1%
2.4 C++ g++ #4 0.60 211,852 2275 0.98 38% 25% 82% 27%
2.8 Node.js #7 3.72 244,156 1088 3.99 1% 8% 3% 98%
2.8 TypeScript 3.69 244,248 1131 3.92 7% 48% 37% 18%
2.8 Node.js #2 9.38 244,424 1202 9.63 2% 3% 20% 79%
2.8 C++ g++ 2.59 247,896 571 2.58 1% 1% 100% 1%
2.8 C++ g++ #2 0.79 248,924 1082 1.07 13% 13% 41% 73%
2.8 C gcc #5 0.72 249,620 638 0.71 100% 3% 1% 0%
2.9 C gcc #2 0.53 251,496 741 0.79 21% 48% 67% 19%
2.9 Go 0.85 258,804 1243 1.00 52% 15% 50% 3%
3.0 Rust 0.71 265,408 1807 0.98 75% 16% 26% 27%
3.0 Python 3 #6 2.82 265,428 800 4.18 46% 32% 20% 54%
3.0 Rust #3 0.46 268,328 1330 0.75 26% 22% 23% 98%
3.1 Rust #2 0.33 270,356 1324 0.61 30% 100% 35% 33%
3.1 Swift 0.85 273,548 1287 1.03 10% 13% 80% 22%
3.3 Java  #5 1.72 294,360 1098 1.87 8% 96% 6% 3%
3.4 Chapel 1.46 300,412 643 2.11 98% 19% 22% 10%
3.4 C# .NET Core 1.83 300,640 1099 1.83 99% 0% 1% 3%
3.7 C gcc 0.57 325,800 1867 0.90 0% 82% 35% 45%
3.8 Smalltalk VW 30.82 332,960 906 30.78 1% 1% 1% 100%
3.9 Java #3 1.10 345,352 1661 2.40 33% 82% 53% 54%
4.1 Go #5 1.23 358,860 926 1.73 2% 48% 38% 57%
4.1 PHP 3.82 359,768 297 3.81 1% 100% 1% 0%
4.2 Java #4 2.26 368,656 592 2.38 2% 99% 3% 3%
4.3 Perl #3 2.67 378,924 284 2.67 100% 0% 1% 0%
4.4 Lua #4 21.88 383,448 594 21.84 1% 61% 0% 40%
4.5 C++ g++ #6 1.38 399,452 1752 2.10 31% 24% 99% 7%
4.6 Lisp SBCL 2.12 405,988 896 2.11 3% 100% 0% 0%
5.0 PHP #2 4.23 438,248 262 4.22 2% 0% 1% 100%
5.4 Racket 13.38 474,188 547 13.37 1% 100% 2% 0%
5.7 Ruby #3 4.03 505,656 509 7.14 51% 83% 37% 9%
5.9 Erlang HiPE #4 47.87 516,388 1167 62.83 56% 52% 15% 10%
6.0 Java #6 1.35 526,544 745 1.64 40% 3% 40% 45%
6.3 C# .NET Core #4 1.58 558,300 1708 2.22 6% 92% 27% 18%
6.9 Erlang #4 40.53 609,092 1167 52.35 11% 21% 58% 42%
7.3 C# .NET Core #3 4.64 641,568 863 6.18 12% 97% 15% 11%
7.6 Ruby 5.66 671,980 536 10.35 93% 59% 27% 6%
7.9 F# .NET Core 11.05 695,604 588 11.54 51% 2% 3% 51%
8.0 C# .NET Core #2 1.40 700,868 1670 2.22 19% 45% 63% 37%
8.4 Lua #2 17.44 740,584 553 17.43 100% 1% 1% 0%
9.7 Erlang HiPE 10.86 855,552 1302 27.02 59% 63% 79% 50%
9.9 Haskell GHC #2 2.54 870,512 919 2.82 2% 98% 5% 3%
10 Erlang 9.36 902,492 1302 21.31 65% 65% 47% 53%
11 Python 3 #4 5.60 1,012,584 325 5.58 1% 100% 1% 0%
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%
20 Dart #2 29.82 1,720,880 555 35.04 18% 66% 17% 19%
20 Dart #3 23.84 1,729,012 551 29.14 34% 59% 21% 11%
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
Java #8 Bad Output
OCaml Partial
OCaml #3 Partial
PHP #3 Partial
Rust #4 Make Error