The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Ruby #2 9.96 130,824 255 9.95 1% 100% 1% 100%
1.0 Ruby JRuby #2 23.47 1,267,564 255 23.42 0% 1% 1% 100%
1.0 PHP #2 5.13 446,852 262 5.12 0% 1% 1% 100%
1.1 Perl #3 2.84 377,584 284 2.83 0% 1% 0% 100%
1.2 PHP 4.68 375,464 297 4.67 0% 0% 2% 100%
1.3 Python 3 #4 6.77 783,232 325 6.76 0% 1% 1% 100%
1.5 OCaml #2 4.48 174,948 394 4.47 0% 0% 1% 100%
2.0  #4 2.52 425,000 501 2.52 3% 0% 2% 100%
2.0 Ruby JRuby #3 18.80 2,240,988 509 18.73 0% 1% 1% 100%
2.0 Ruby #3 6.17 541,352 509 6.14 0% 1% 1% 100%
2.1 Ruby 9.15 623,560 536 9.12 1% 1% 1% 100%
2.1 Ruby JRuby 20.98 2,148,404 536 20.88 1% 4% 1% 100%
2.1 Go #3 1.90 170,336 543 1.90 1% 4% 1% 100%
2.1 Go #2 2.02 170,596 546 2.01 0% 2% 1% 100%
2.1 Racket 13.07 388,960 547 13.05 0% 1% 1% 100%
2.2 Dart #3 22.82 1,012,676 551 22.79 0% 1% 1% 100%
2.2 Dart #2 27.48 1,029,332 555 27.44 1% 1% 0% 100%
2.2 C++ g++ 3.64 247,080 571 3.63 1% 0% 1% 100%
2.3 Java  #4 2.85 485,372 592 2.84 1% 2% 0% 100%
2.4 Erlang HiPE #3 53.38 875,768 624 53.29 1% 1% 1% 100%
2.5 C gcc #5 0.85 249,324 638 0.84 1% 1% 2% 100%
2.5 Chapel 2.99 274,860 643 2.98 99% 1% 1% 1%
2.5 C++ g++ #5 25.35 182,488 646 25.34 1% 0% 0% 100%
2.8 C gcc #4 1.43 125,736 704 1.42 0% 1% 1% 100%
2.9  #5 6.36 564,468 727 6.35 1% 100% 1% 100%
2.9 C gcc #2 0.78 251,464 741 0.77 3% 1% 1% 100%
2.9 Java #6 1.79 521,988 745 1.78 1% 2% 2% 100%
2.9 Pascal Free Pascal #2 2.14 124,816 751 2.14 1% 100% 0% 100%
3.0 Smalltalk VW 28.16 385,128 754 28.14 0% 1% 1% 100%
3.0  #8 2.37 522,312 761 2.36 2% 1% 1% 100%
3.0 Fortran Intel #2 8.01 194,340 772 8.00 1% 1% 1% 100%
3.1 Python 3 #6 5.54 262,360 800 5.53 1% 1% 1% 100%
3.2 C++ g++ #3 1.41 126,796 810 1.40 1% 1% 3% 99%
3.2 C gcc #6 0.62 125,340 812 0.62 3% 0% 0% 100%
3.4 C# Mono LLVM #3 5.94 214,936 863 5.92 1% 1% 1% 100%
3.5 Ada 2005 GNAT 3.82 126,372 885 3.82 1% 2% 1% 100%
3.5 Lisp SBCL 2.78 219,468 896 2.78 0% 1% 0% 100%
3.6 Haskell GHC #2 2.72 764,064 919 2.71 0% 1% 0% 100%
3.6 Go #5 2.11 293,464 926 2.11 1% 1% 0% 100%
3.9  #4 7.23 465,944 997 7.22 1% 1% 100% 100%
3.9 Haskell GHC #3 1.30 128,364 999 1.30 2% 2% 1% 99%
4.0 Fortran Intel 0.93 247,724 1013 0.93 0% 1% 3% 100%
4.0 Racket #2 4.63 175,564 1026 4.63 1% 1% 1% 100%
4.1 6.11 422,228 1044 6.10 1% 100% 0% 100%
4.2 OCaml 3.39 ? 1064 ? 2% 0% 0% 100%
4.2 C++ g++ #2 1.18 247,296 1082 1.17 2% 0% 3% 100%
4.3 Node.js #7 3.92 280,384 1088 3.91 1% 1% 1% 100%
4.3 Java #5 1.88 286,824 1098 1.87 1% 0% 0% 100%
4.3 C# Mono LLVM 1.70 195,528 1099 1.70 2% 1% 1% 100%
4.4 TypeScript 3.91 280,244 1131 3.90 1% 0% 1% 100%
4.6 Erlang HiPE #4 47.43 531,696 1167 47.40 0% 1% 1% 100%
4.7 Node.js #2 9.13 279,020 1202 9.12 1% 0% 0% 100%
4.9 Go 1.50 266,476 1243 1.50 1% 3% 1% 100%
5.0 Go #6 1.01 133,360 1278 1.00 3% 1% 1% 99%
5.1 Erlang HiPE 25.34 556,864 1302 25.31 1% 1% 1% 100%
5.2 OCaml #3 2.16 ? 1314 ? 1% 1% 1% 100%
6.4 Java #7 6.71 ? 1640 ? 4% 17% 4% 100%
6.5 Java #3 2.54 305,260 1661 2.53 2% 2% 2% 100%
6.7 C# Mono LLVM #4 2.18 ? 1708 ? 1% 1% 0% 88%
6.9 C++ g++ #6 2.43 349,164 1752 2.42 1% 2% 1% 100%
7.1 Rust 0.88 267,168 1807 0.88 1% 0% 0% 100%
7.3 C gcc 0.94 494,356 1867 0.93 0% 4% 1% 100%
8.1 OCaml #4 1.84 265,208 2064 1.83 1% 1% 1% 100%
8.9 C++ g++ #4 1.02 247,604 2275 1.01 2% 0% 0% 100%
13 Ada 2005 GNAT #2 1.22 200,692 3220 1.20 2% 2% 1% 98%
C# Mono LLVM #2 Failed
Go #4 Bad Output
Lua #3 Failed
Lua Failed