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 183,328 807 0.58 7% 98% 15% 24%
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.7 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.9 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.5 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%
4.1 Java  #5 1.73 294,596 1098 1.86 6% 0% 98% 6%
4.8 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.5 Java  #4 2.28 368,760 592 2.39 4% 100% 1% 5%
5.6 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%
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%
13 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 JavaScript V8 #4 7.72 403,236 787 7.78 0% 1% 2% 100%
19 Ruby #2 7.75 133,736 255 7.74 0% 0% 100% 1%
22 Node.js #2 9.34 247,288 1202 9.61 2% 99% 2% 2%
25 Erlang 10.34 1,029,952 1302 20.18 44% 46% 51% 56%
26 Erlang HiPE 10.83 859,300 1302 21.16 33% 92% 30% 42%
28 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%
31 JavaScript V8 #3 13.04 331,048 498 13.06 1% 0% 100% 2%
38 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%
53 Dart #3 22.16 1,779,152 551 24.82 68% 20% 6% 20%
63 JavaScript V8 #2 26.13 470,440 456 26.22 1% 0% 100% 1%
66 Dart #2 27.42 1,775,908 555 29.97 28% 9% 58% 17%
73 Smalltalk VW 30.70 406,024 754 30.68 100% 0% 1% 1%
76 JavaScript V8 31.77 341,528 390 31.77 1% 7% 3% 91%
85 Erlang #4 35.63 675,416 1167 46.08 12% 78% 29% 11%
91 Erlang HiPE #4 38.09 637,340 1167 47.24 54% 9% 53% 10%
137 Erlang HiPE #3 57.46 1,336,884 624 60.10 18% 17% 50% 24%
158 Erlang #3 66.01 1,196,576 624 68.09 27% 1% 73% 3%
231 JavaScript V8 #6 96.68 399,740 359 96.77 0% 1% 100% 0%
Go #4 Bad Output
Node.js #4 Failed
Node.js Failed
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed