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 #2 0.78 251,604 741 0.77 6% 0% 0% 100%
1.1 C gcc #5 0.85 249,420 638 0.84 0% 1% 1% 100%
1.2 Fortran Intel 0.93 247,724 1013 0.93 0% 1% 3% 100%
1.2 C gcc 0.95 494,008 1867 0.94 2% 3% 2% 100%
1.3 Go #6 0.99 133,872 1278 0.99 6% 0% 3% 100%
1.3 C++ g++ #4 1.03 249,856 2275 1.02 2% 2% 0% 100%
1.4 Rust 1.08 267,420 1807 1.07 0% 4% 0% 100%
1.5 C++ g++ #2 1.18 247,064 1082 1.17 3% 0% 3% 100%
1.6 Ada 2005 GNAT #2 1.22 200,692 3220 1.20 2% 2% 1% 98%
1.7 Haskell GHC #3 1.30 128,364 999 1.30 2% 2% 1% 99%
1.8 C++ g++ #3 1.40 126,920 810 1.40 2% 1% 2% 100%
1.9 C gcc #4 1.45 125,876 704 1.44 0% 0% 1% 100%
1.9 Go 1.50 265,692 1243 1.49 2% 100% 1% 100%
2.2 C# Mono 1.72 196,088 1099 1.71 1% 2% 2% 100%
2.3 Java  #6 1.79 521,988 745 1.78 1% 2% 2% 100%
2.4 OCaml #4 1.84 265,208 2064 1.83 1% 1% 1% 100%
2.4 Java  #5 1.88 286,824 1098 1.87 1% 0% 0% 100%
2.5 Go #3 1.91 171,668 543 1.90 2% 100% 0% 100%
2.6 Scala #8 2.02 517,176 761 2.01 0% 1% 1% 100%
2.6 Go #2 2.02 171,664 546 2.02 0% 2% 100% 100%
2.7 Go #5 2.06 422,240 926 2.06 1% 100% 0% 100%
2.8 Pascal Free Pascal #2 2.14 124,816 751 2.14 1% 100% 0% 100%
2.8 OCaml #3 2.16 17,984 1314 1% 1% 1% 100%
3.0 Scala #4 2.31 417,240 501 2.31 1% 1% 0% 100%
3.3 Java  #3 2.54 305,260 1661 2.53 2% 2% 2% 100%
3.5 Haskell GHC #2 2.72 764,064 919 2.71 0% 1% 0% 100%
3.7 Lisp SBCL 2.83 229,352 896 2.83 1% 0% 0% 100%
3.7 Perl #3 2.84 377,584 284 2.83 0% 1% 0% 100%
3.7 Java  #4 2.85 485,372 592 2.84 1% 2% 0% 100%
4.4 OCaml 3.39 33,236 1064 2% 0% 0% 100%
4.8 C++ g++ 3.72 247,800 571 3.71 1% 2% 1% 100%
4.9 Ada 2005 GNAT 3.82 126,372 885 3.82 1% 2% 1% 100%
5.3 Scala #7 4.09 751,420 949 4.08 1% 1% 1% 100%
5.8 OCaml #2 4.48 174,948 394 4.47 0% 0% 1% 100%
5.9 Racket #2 4.59 177,728 1026 4.58 1% 1% 1% 100%
6.0 PHP 4.68 375,464 297 4.67 0% 0% 2% 100%
6.6 PHP #2 5.13 446,852 262 5.12 0% 1% 1% 100%
7.2 Python 3 #6 5.54 262,360 800 5.53 1% 1% 1% 100%
7.6 C# Mono #3 5.89 215,568 863 5.88 0% 1% 1% 100%
7.9 Clojure 6.11 422,228 1044 6.10 1% 100% 0% 100%
8.2 Clojure #5 6.36 564,468 727 6.35 1% 100% 1% 100%
8.7 Java  #7 6.71 274,448 1640 2.53 4% 17% 4% 100%
8.7 Python 3 #4 6.77 783,232 325 6.76 0% 1% 1% 100%
9.3 Clojure #4 7.23 465,944 997 7.22 1% 1% 100% 100%
9.5 JavaScript V8 #4 7.38 268,660 787 7.37 1% 100% 0% 100%
10 Fortran Intel #2 8.01 194,340 772 8.00 1% 1% 1% 100%
11 Node.js #2 8.84 234,152 1202 8.83 0% 1% 0% 100%
12 Ruby 9.15 623,560 536 9.12 1% 1% 1% 100%
13 Ruby #2 9.96 130,824 255 9.95 1% 100% 1% 100%
16 JavaScript V8 #3 12.73 196,144 498 12.72 1% 0% 100% 100%
17 Racket 13.16 506,312 547 13.14 0% 1% 1% 100%
27 Erlang HiPE 20.81 599,172 1302 20.79 0% 0% 1% 100%
27 Ruby JRuby 20.98 2,148,404 536 20.88 1% 4% 1% 100%
30 Ruby JRuby #2 23.47 1,267,564 255 23.42 0% 1% 1% 100%
31 Dart #3 23.74 1,040,764 551 23.72 1% 0% 1% 100%
31 JavaScript V8 #2 23.91 452,032 456 23.88 1% 100% 1% 100%
33 C++ g++ #5 25.53 132,728 646 25.52 0% 1% 1% 100%
36 Smalltalk VW 27.91 385,072 754 27.90 0% 1% 1% 100%
37 Dart #2 28.36 988,652 555 28.34 1% 1% 1% 100%
37 JavaScript V8 28.94 194,576 390 28.91 1% 79% 21% 100%
47 Erlang HiPE #4 36.47 601,384 1167 36.44 1% 0% 0% 100%
66 Erlang HiPE #3 51.18 949,932 624 51.11 0% 1% 1% 100%
162 JavaScript V8 #6 125.81 327,776 359 125.44 1% 37% 65% 100%
Go #4 Bad Output
Node.js #4 Failed
Node.js Failed
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed