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.53 251,672 741 0.77 50% 2% 81% 21%
1.0 Go #6 0.53 88,368 1278 0.94 28% 47% 77% 31%
1.1 C gcc 0.56 329,780 1867 0.90 11% 45% 30% 84%
1.1 C++ g++ #4 0.59 219,048 2275 0.89 83% 21% 53% 5%
1.3 C gcc #5 0.69 249,632 638 0.68 100% 6% 1% 0%
1.4 Rust 0.72 262,516 1807 0.92 74% 29% 13% 21%
1.4 OCaml #3 0.75 34,056 1314 53% 51% 60% 57%
1.5 Ada 2005 GNAT #2 0.78 200,964 3220 0.91 63% 36% 22% 3%
1.6 Go 0.83 259,396 1243 0.94 43% 12% 56% 4%
1.9 C++ g++ #2 0.99 248,448 1082 0.98 0% 100% 4% 1%
1.9 Fortran Intel 1.01 248,636 1013 1.01 2% 2% 99% 3%
2.1 C gcc #4 1.10 125,980 704 1.10 100% 0% 1% 0%
2.1 Go #2 1.12 166,224 546 1.14 10% 3% 88% 3%
2.1 Go #5 1.12 410,316 926 1.47 40% 11% 77% 8%
2.2 C++ g++ #3 1.15 127,052 810 1.14 100% 3% 1% 1%
2.2 Go #3 1.16 165,944 543 1.18 89% 4% 2% 10%
2.4 Java  #3 1.27 315,296 1661 2.68 41% 48% 34% 92%
2.6 Scala #8 1.36 477,268 761 1.80 39% 4% 90% 4%
2.7 Java  #6 1.40 526,320 745 1.70 4% 37% 4% 82%
2.7 Haskell GHC #3 1.42 129,168 999 1.58 100% 8% 8% 6%
2.8 OCaml 1.45 66,804 1064 39% 51% 13% 57%
2.9 OCaml #4 1.50 138,672 2064 1.50 1% 9% 1% 100%
3.0 C# Mono 1.56 199,052 1099 1.56 3% 3% 1% 99%
3.1 Java  #5 1.63 294,508 1098 1.76 4% 99% 3% 4%
3.8 Pascal Free Pascal #2 1.99 124,536 751 1.99 1% 1% 100% 1%
4.1 Scala #4 2.18 376,408 501 2.28 4% 100% 1% 3%
4.3 Lisp SBCL 2.27 304,892 896 2.26 100% 1% 2% 0%
4.4 Java  #4 2.30 371,252 592 2.40 3% 99% 4% 3%
4.4 Scala #7 2.32 831,632 949 4.88 34% 50% 38% 91%
4.9 C++ g++ 2.56 248,168 571 2.55 0% 1% 100% 1%
5.0 Haskell GHC #2 2.63 936,564 919 3.02 5% 75% 30% 5%
5.0 Clojure #5 2.65 579,024 727 4.05 55% 20% 58% 23%
5.1 Ada 2005 GNAT 2.67 127,544 885 2.66 0% 2% 100% 0%
5.2 Perl #3 2.74 375,760 284 2.74 1% 0% 0% 100%
5.8 Clojure 3.05 397,508 1044 4.18 23% 77% 31% 11%
5.9 Python 3 #6 3.11 266,972 800 4.56 20% 99% 2% 29%
7.8 Clojure #4 4.11 408,212 997 5.46 28% 39% 57% 13%
8.0 PHP 4.23 368,916 297 4.22 100% 1% 0% 0%
8.3 Racket #2 4.37 176,684 1026 4.36 0% 0% 100% 1%
8.7 OCaml #2 4.57 210,548 394 4.56 100% 2% 4% 0%
9.0 PHP #2 4.71 443,312 262 4.70 83% 1% 0% 18%
9.3 C# Mono #3 4.89 265,460 863 5.10 1% 1% 100% 5%
10 Ruby 5.24 686,764 536 9.66 77% 30% 28% 52%
11 Python 3 #4 5.71 1,013,040 325 5.70 1% 1% 100% 0%
12 Hack #2 6.33 504,728 261 6.32 0% 2% 100% 0%
12 Fortran Intel #2 6.43 155,376 772 6.43 1% 89% 1% 11%
13 Hack 6.94 504,804 294 6.93 0% 1% 100% 0%
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 Ruby #2 7.75 133,736 255 7.74 0% 0% 100% 1%
20 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%
21 Ruby JRuby 11.08 2,148,856 536 31.29 79% 74% 66% 66%
24 Racket 12.63 582,736 547 12.63 0% 100% 1% 0%
25 JavaScript V8 #3 13.04 331,048 498 13.06 1% 0% 100% 2%
35 Ruby JRuby #2 18.24 1,284,372 255 24.84 22% 14% 14% 88%
36 C++ g++ #5 18.75 127,220 646 18.74 100% 1% 1% 1%
42 Dart #3 22.16 1,779,152 551 24.82 68% 20% 6% 20%
50 JavaScript V8 #2 26.13 470,440 456 26.22 1% 0% 100% 1%
52 Dart #2 27.42 1,775,908 555 29.97 28% 9% 58% 17%
58 Smalltalk VW 30.70 406,024 754 30.68 100% 0% 1% 1%
60 JavaScript V8 31.77 341,528 390 31.77 1% 7% 3% 91%
68 Erlang #4 35.63 675,416 1167 46.08 12% 78% 29% 11%
72 Erlang HiPE #4 38.09 637,340 1167 47.24 54% 9% 53% 10%
109 Erlang HiPE #3 57.46 1,336,884 624 60.10 18% 17% 50% 24%
125 Erlang #3 66.01 1,196,576 624 68.09 27% 1% 73% 3%
184 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