The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C gcc #6 0.42 145,928 812 0.58 24% 27% 0% 98%
1.3 C gcc #2 0.53 251,672 741 0.77 50% 2% 81% 21%
1.3 Go #6 0.53 88,368 1278 0.94 28% 47% 77% 31%
1.3 C gcc 0.56 329,780 1867 0.90 11% 45% 30% 84%
1.4 C++ g++ #4 0.59 219,048 2275 0.89 83% 21% 53% 5%
1.6 C gcc #5 0.69 249,632 638 0.68 100% 6% 1% 0%
1.8 OCaml #3 0.75 34,056 1314 53% 51% 60% 57%
1.8 Ada 2005 GNAT #2 0.78 200,964 3220 0.91 63% 36% 22% 3%
2.0 Go 0.83 259,396 1243 0.94 43% 12% 56% 4%
2.3 Rust 0.96 253,760 1807 1.22 17% 13% 1% 99%
2.4 C++ g++ #2 0.99 248,448 1082 0.98 0% 100% 4% 1%
2.4 Fortran Intel 1.01 248,636 1013 1.01 2% 2% 99% 3%
2.6 C gcc #4 1.10 125,980 704 1.10 100% 0% 1% 0%
2.7 Go #2 1.12 166,224 546 1.14 10% 3% 88% 3%
2.7 Go #5 1.12 410,316 926 1.47 40% 11% 77% 8%
2.7 C++ g++ #3 1.15 127,052 810 1.14 100% 3% 1% 1%
2.8 Go #3 1.16 165,944 543 1.18 89% 4% 2% 10%
2.8 Java  #3 1.17 345,940 1661 2.42 41% 43% 57% 72%
3.2 Scala #8 1.36 477,268 761 1.80 39% 4% 90% 4%
3.3 Java  #6 1.38 526,204 745 1.68 4% 79% 1% 41%
3.4 Haskell GHC #3 1.43 131,184 999 1.59 6% 6% 99% 2%
3.4 OCaml 1.45 66,804 1064 39% 51% 13% 57%
3.6 OCaml #4 1.50 138,672 2064 1.50 1% 9% 1% 100%
3.7 C# Mono 1.56 197,160 1099 1.56 3% 98% 4% 2%
3.9 C# Mono #2 1.63 624,780 1670 2.46 57% 80% 3% 15%
4.0 C# Mono #4 1.70 380,260 1708 1.94 59% 38% 2% 19%
4.1 Java  #5 1.73 294,596 1098 1.86 6% 0% 98% 6%
4.7 Pascal Free Pascal #2 1.99 124,536 751 1.99 1% 1% 100% 1%
5.2 Scala #4 2.18 376,408 501 2.28 4% 100% 1% 3%
5.4 Lisp SBCL 2.27 304,892 896 2.26 100% 1% 2% 0%
5.4 Java  #4 2.28 368,760 592 2.39 4% 100% 1% 5%
5.5 Scala #7 2.32 831,632 949 4.88 34% 50% 38% 91%
6.1 Haskell GHC #2 2.56 874,008 919 2.89 99% 4% 6% 6%
6.1 C++ g++ 2.56 248,168 571 2.55 0% 1% 100% 1%
6.3 Clojure #5 2.65 579,024 727 4.05 55% 20% 58% 23%
6.4 Ada 2005 GNAT 2.67 127,544 885 2.66 0% 2% 100% 0%
6.4 Perl #3 2.67 378,924 284 2.67 100% 0% 1% 0%
7.3 Clojure 3.05 397,508 1044 4.18 23% 77% 31% 11%
7.4 Python 3 #6 3.11 266,972 800 4.56 20% 99% 2% 29%
8.5 Node.js #7 3.56 260,960 1088 3.84 3% 100% 2% 6%
9.6 PHP 4.02 336,164 297 4.01 2% 0% 100% 0%
9.8 Clojure #4 4.11 408,212 997 5.46 28% 39% 57% 13%
10 Racket #2 4.27 184,844 1026 4.26 1% 0% 0% 100%
11 PHP #2 4.50 441,272 262 4.49 0% 100% 1% 1%
11 OCaml #2 4.57 210,548 394 4.56 100% 2% 4% 0%
12 C# Mono #3 4.94 261,732 863 5.16 5% 2% 99% 0%
12 Ruby 5.24 686,764 536 9.66 77% 30% 28% 52%
14 Python 3 #4 5.71 1,013,040 325 5.70 1% 1% 100% 0%
15 Hack #2 6.33 504,728 261 6.32 0% 2% 100% 0%
15 Fortran Intel #2 6.43 155,376 772 6.43 1% 89% 1% 11%
17 Hack 6.94 504,804 294 6.93 0% 1% 100% 0%
17 Java  #7 7.25 281,256 1640 2.69 12% 75% 50% 7%
18 Ruby #2 7.75 133,736 255 7.74 0% 0% 100% 1%
22 Node.js #2 9.32 243,140 1202 9.58 91% 3% 2% 9%
22 Erlang 9.36 902,492 1302 21.31 65% 65% 47% 53%
26 Erlang HiPE 10.86 855,552 1302 27.02 59% 63% 79% 50%
27 Ruby JRuby 11.50 2,310,096 536 32.88 78% 73% 70% 68%
30 Racket 12.66 583,272 547 12.65 1% 1% 100% 1%
37 Ruby JRuby #2 15.71 1,490,472 255 24.02 36% 53% 27% 39%
45 C++ g++ #5 18.75 127,220 646 18.74 100% 1% 1% 1%
51 Dart #3 21.23 1,793,224 551 23.32 20% 29% 52% 10%
64 Dart #2 26.78 1,775,212 555 28.82 32% 13% 50% 17%
74 Smalltalk VW 31.04 331,812 754 31.02 0% 1% 100% 1%
97 Erlang #4 40.53 609,092 1167 52.35 11% 21% 58% 42%
114 Erlang HiPE #4 47.87 516,388 1167 62.83 56% 52% 15% 10%
140 Erlang HiPE #3 58.94 1,396,036 624 62.15 12% 54% 39% 4%
163 Erlang #3 68.35 1,230,964 624 70.04 52% 30% 23% 0%
Go #4 Bad Output
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed