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.67 251,684 741 0.66 0% 1% 0% 100%
1.0 C gcc #5 0.70 249,592 638 0.69 1% 1% 1% 99%
1.0 C gcc 0.70 446,348 1867 0.70 0% 1% 21% 100%
1.2 C++ g++ #4 0.78 247,296 2275 0.77 13% 0% 0% 99%
1.2 Rust 0.79 258,296 1985 0.79 1% 0% 1% 100%
1.3 Go 0.88 259,460 1243 0.88 0% 2% 4% 100%
1.4 Ada 2005 GNAT #2 0.92 200,988 3220 0.90 1% 0% 1% 99%
1.4 C++ g++ #2 0.97 248,188 1082 0.96 1% 2% 0% 100%
1.5 Fortran Intel 1.01 183,820 1013 1.01 0% 1% 2% 100%
1.7 Go #2 1.12 166,124 546 1.11 2% 0% 2% 100%
1.7 C gcc #4 1.12 126,060 704 1.12 1% 0% 1% 100%
1.7 Go #3 1.15 165,724 543 1.15 2% 1% 0% 100%
1.7 C++ g++ #3 1.16 126,556 810 1.15 1% 3% 0% 100%
1.8 Haskell GHC #3 1.24 128,880 999 1.23 2% 0% 3% 100%
1.9 OCaml #3 1.28 32,552 1314 0.00 2% 2% 1% 100%
2.3 C# Mono 1.57 199,032 1099 1.56 2% 1% 0% 100%
2.4 OCaml #4 1.60 131,936 2064 1.48 0% 1% 3% 100%
2.5 Scala #8 1.70 466,716 761 1.70 2% 2% 1% 100%
2.5 Java  #6 1.70 474,400 745 1.70 1% 1% 3% 99%
3.0 Pascal Free Pascal #2 2.02 123,976 751 2.02 3% 0% 2% 100%
3.1 Scala #4 2.07 348,824 501 2.06 0% 2% 0% 100%
3.1 OCaml 2.11 65,556 1064 0.00 0% 2% 0% 100%
3.4 Lisp SBCL 2.27 302,336 896 2.26 1% 1% 3% 100%
3.5 Java  #3 2.34 313,952 1661 2.34 3% 5% 1% 100%
3.5 Java  #4 2.38 369,992 592 2.37 0% 1% 0% 100%
3.6 Haskell GHC #2 2.39 753,084 919 2.38 3% 0% 0% 100%
4.0 Perl #3 2.67 376,248 284 2.66 0% 0% 1% 100%
4.1 C++ g++ 2.76 248,372 571 2.76 1% 0% 1% 100%
4.2 Ada 2005 GNAT 2.85 127,212 885 2.84 1% 1% 0% 100%
5.3 Scala #7 3.57 832,980 949 3.56 1% 0% 1% 100%
6.0 Clojure #5 4.04 589,228 727 4.03 0% 1% 1% 100%
6.1 Clojure 4.08 366,732 1135 4.08 1% 1% 1% 100%
6.4 OCaml #2 4.26 214,244 394 4.25 0% 0% 1% 100%
6.5 Racket #2 4.38 176,856 1026 4.37 1% 1% 0% 100%
6.7 Python 3 #6 4.47 264,580 800 4.45 0% 1% 1% 100%
7.5 C# Mono #3 5.02 265,344 863 5.01 1% 1% 1% 100%
8.0 Clojure #4 5.36 364,456 1005 5.35 1% 0% 1% 100%
8.6 Python 3 #4 5.74 1,012,480 325 5.73 0% 0% 1% 100%
8.7 PHP #2 5.83 444,352 262 5.82 1% 1% 1% 100%
8.8 PHP 5.88 369,928 297 5.87 1% 1% 1% 100%
9.5 Fortran Intel #2 6.39 151,808 772 6.39 1% 0% 0% 100%
9.9 Hack #2 6.61 490,368 261 6.59 0% 1% 1% 100%
11 Hack 7.44 488,912 294 7.42 1% 0% 1% 100%
11 Java  #7 7.55 283,760 1640 2.12 1% 1% 11% 100%
12 JavaScript V8 #4 7.77 403,136 787 7.76 2% 0% 0% 100%
13 Ruby #2 8.38 131,592 255 8.37 1% 0% 0% 100%
19 JavaScript V8 #3 13.04 333,612 498 13.02 1% 1% 0% 100%
21 Racket 14.14 560,104 547 14.12 0% 1% 1% 100%
30 Erlang HiPE 19.80 584,256 1302 19.78 1% 1% 0% 100%
30 Dart #3 19.84 1,765,288 551 19.80 0% 1% 1% 100%
34 C++ g++ #5 22.64 147,532 646 22.62 1% 1% 0% 100%
36 Ruby JRuby #2 24.27 1,282,636 255 24.25 0% 1% 1% 100%
38 Dart #2 25.66 1,771,240 555 25.63 1% 1% 0% 100%
39 JavaScript V8 #2 26.09 468,248 456 26.04 1% 0% 1% 100%
46 Smalltalk VW 30.73 405,736 754 30.71 0% 1% 0% 100%
47 JavaScript V8 31.62 347,060 390 31.57 0% 1% 1% 100%
54 Erlang HiPE #4 35.97 637,176 1167 35.94 1% 1% 0% 100%
74 Erlang HiPE #3 49.82 1,231,180 624 49.74 1% 0% 0% 100%
144 JavaScript V8 #6 96.49 399,704 359 96.46 1% 1% 0% 100%
Go #4 Bad Output
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed