The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 C gcc #2 0.50 251,028 741 0.76 82% 44% 12% 20%
1.1 C gcc 0.57 373,440 1867 0.93 27% 21% 84% 39%
1.2 C++ g++ #4 0.58 214,852 2275 0.96 29% 18% 88% 38%
1.4 C gcc #5 0.69 249,588 638 0.69 4% 0% 100% 1%
1.4 Rust 0.71 256,280 1807 0.92 20% 74% 38% 3%
1.4 OCaml #3 0.73 31,436 1314 0.00 47% 47% 52% 70%
1.5 Ada 2005 GNAT #2 0.78 201,036 3220 0.92 27% 32% 4% 56%
1.7 Go 0.84 259,504 1243 0.98 91% 1% 25% 1%
1.9 C++ g++ #2 0.97 248,472 1082 0.96 0% 1% 0% 100%
2.0 Fortran Intel 1.01 248,636 1013 1.01 2% 2% 99% 3%
2.2 Go #5 1.09 435,680 926 1.68 76% 18% 38% 25%
2.2 Go #2 1.12 166,076 546 1.14 98% 0% 2% 4%
2.2 C gcc #4 1.12 126,152 704 1.12 99% 1% 3% 0%
2.3 C++ g++ #3 1.15 126,908 810 1.14 1% 0% 2% 99%
2.3 Go #3 1.15 165,936 543 1.18 89% 11% 3% 3%
2.5 Java  #3 1.27 315,296 1661 2.68 41% 48% 34% 92%
2.7 Scala #8 1.36 477,268 761 1.80 39% 4% 90% 4%
2.8 Java  #6 1.40 526,320 745 1.70 4% 37% 4% 82%
2.8 Haskell GHC #3 1.42 129,168 999 1.58 100% 8% 8% 6%
3.0 OCaml #4 1.49 137,376 2064 1.49 0% 1% 9% 100%
3.0 OCaml 1.52 65,264 1064 0.00 4% 8% 79% 63%
3.1 C# Mono 1.56 199,052 1099 1.56 3% 3% 1% 99%
4.0 Pascal Free Pascal #2 1.99 124,536 751 1.99 1% 1% 100% 1%
4.3 Scala #4 2.18 376,408 501 2.28 4% 100% 1% 3%
4.5 Lisp SBCL 2.27 304,384 896 2.26 0% 1% 1% 100%
4.6 Java  #4 2.30 371,252 592 2.40 3% 99% 4% 3%
4.6 Scala #7 2.32 831,632 949 4.88 34% 50% 38% 91%
5.0 C++ g++ 2.54 247,460 571 2.53 1% 100% 0% 1%
5.2 Haskell GHC #2 2.63 936,564 919 3.02 5% 75% 30% 5%
5.4 Perl #3 2.74 375,760 284 2.74 1% 0% 0% 100%
5.5 Clojure #5 2.77 585,660 727 4.36 10% 17% 43% 91%
5.8 Ada 2005 GNAT 2.90 129,760 885 2.90 68% 1% 0% 33%
6.2 Python 3 #6 3.11 266,972 800 4.56 20% 99% 2% 29%
6.3 Clojure 3.16 410,484 1135 4.20 83% 14% 11% 26%
8.4 PHP 4.23 368,916 297 4.22 100% 1% 0% 0%
8.4 Clojure #4 4.25 364,992 1005 5.74 16% 77% 33% 11%
8.5 OCaml #2 4.28 214,136 394 4.27 1% 0% 1% 100%
8.7 Racket #2 4.37 176,684 1026 4.36 0% 0% 100% 1%
9.4 PHP #2 4.71 443,312 262 4.70 83% 1% 0% 18%
9.7 C# Mono #3 4.89 265,460 863 5.10 1% 1% 100% 5%
11 Python 3 #4 5.71 1,013,040 325 5.70 1% 1% 100% 0%
13 Fortran Intel #2 6.43 155,376 772 6.43 1% 89% 1% 11%
14 Hack #2 6.82 488,556 261 6.80 0% 1% 97% 4%
14 Java  #7 7.14 283,692 1640 3.06 17% 7% 38% 85%
15 JavaScript V8 #4 7.72 403,236 787 7.78 0% 1% 2% 100%
15 Hack 7.75 488,752 294 7.64 3% 6% 91% 1%
15 Ruby #2 7.75 133,736 255 7.74 0% 0% 100% 1%
21 Erlang 10.34 1,029,952 1302 20.18 44% 46% 51% 56%
21 Erlang HiPE 10.83 859,300 1302 21.16 33% 92% 30% 42%
25 Racket 12.63 582,736 547 12.63 0% 100% 1% 0%
26 JavaScript V8 #3 13.04 331,048 498 13.06 1% 0% 100% 2%
36 Ruby JRuby #2 18.24 1,284,372 255 24.84 22% 14% 14% 88%
38 Dart #3 19.27 1,765,132 551 19.84 18% 2% 2% 82%
44 C++ g++ #5 22.31 193,508 646 22.30 1% 100% 0% 1%
49 Dart #2 24.83 1,771,744 555 25.51 30% 4% 3% 69%
52 JavaScript V8 #2 26.13 470,440 456 26.22 1% 0% 100% 1%
61 Smalltalk VW 30.70 406,024 754 30.68 100% 0% 1% 1%
63 JavaScript V8 31.77 341,528 390 31.77 1% 7% 3% 91%
71 Erlang #4 35.63 675,416 1167 46.08 12% 78% 29% 11%
76 Erlang HiPE #4 38.09 637,340 1167 47.24 54% 9% 53% 10%
114 Erlang HiPE #3 57.46 1,336,884 624 60.10 18% 17% 50% 24%
131 Erlang #3 66.01 1,196,576 624 68.09 27% 1% 73% 3%
192 JavaScript V8 #6 96.68 399,740 359 96.77 0% 1% 100% 0%
Go #4 Bad Output
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed