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.63 125,280 812 0.62 0% 3% 0% 98%
1.2 C gcc #2 0.78 251,604 741 0.77 6% 0% 0% 100%
1.3 C gcc #5 0.85 249,420 638 0.84 0% 1% 1% 100%
1.5 Fortran Intel 0.93 247,724 1013 0.93 0% 1% 3% 100%
1.5 C gcc 0.95 494,008 1867 0.94 2% 3% 2% 100%
1.6 Go #6 0.99 133,872 1278 0.99 6% 0% 3% 100%
1.6 C++ g++ #4 1.03 249,856 2275 1.02 2% 2% 0% 100%
1.7 Rust 1.08 265,400 1807 1.07 0% 0% 1% 100%
1.9 C++ g++ #2 1.18 247,064 1082 1.17 3% 0% 3% 100%
1.9 Ada 2005 GNAT #2 1.22 200,692 3220 1.20 2% 2% 1% 98%
2.1 Haskell GHC #3 1.30 128,364 999 1.30 2% 2% 1% 99%
2.2 C++ g++ #3 1.40 126,920 810 1.40 2% 1% 2% 100%
2.3 C gcc #4 1.45 125,876 704 1.44 0% 0% 1% 100%
2.4 Go 1.50 265,692 1243 1.49 2% 100% 1% 100%
2.7 C# Mono LLVM 1.70 195,528 1099 1.70 2% 1% 1% 100%
2.8 Java  #6 1.79 521,988 745 1.78 1% 2% 2% 100%
2.9 OCaml #4 1.84 265,208 2064 1.83 1% 1% 1% 100%
3.0 Java #5 1.88 286,824 1098 1.87 1% 0% 0% 100%
3.0 Go #3 1.91 171,668 543 1.90 2% 100% 0% 100%
3.2 Scala #8 2.02 517,176 761 2.01 0% 1% 1% 100%
3.2 Go #2 2.02 171,664 546 2.02 0% 2% 100% 100%
3.3 Go #5 2.06 422,240 926 2.06 1% 100% 0% 100%
3.4 Pascal Free Pascal #2 2.14 124,816 751 2.14 1% 100% 0% 100%
3.4 OCaml #3 2.16 17,984 1314 1% 1% 1% 100%
3.5 C# Mono LLVM #4 2.18 433,036 1708 1.90 1% 1% 0% 88%
3.7 Scala #4 2.31 417,240 501 2.31 1% 1% 0% 100%
4.0 Java #3 2.54 305,260 1661 2.53 2% 2% 2% 100%
4.3 Haskell GHC #2 2.72 764,064 919 2.71 0% 1% 0% 100%
4.5 Lisp SBCL 2.83 229,352 896 2.83 1% 0% 0% 100%
4.5 Perl #3 2.84 377,584 284 2.83 0% 1% 0% 100%
4.5 Java #4 2.85 485,372 592 2.84 1% 2% 0% 100%
5.4 OCaml 3.39 33,236 1064 2% 0% 0% 100%
5.9 C++ g++ 3.72 247,800 571 3.71 1% 2% 1% 100%
6.0 Node.js #7 3.81 252,812 1088 3.80 0% 1% 1% 100%
6.1 Ada 2005 GNAT 3.82 126,372 885 3.82 1% 2% 1% 100%
6.1 TypeScript 3.85 278,920 1131 3.84 1% 0% 1% 100%
6.5 Scala #7 4.09 751,420 949 4.08 1% 1% 1% 100%
7.1 OCaml #2 4.48 174,948 394 4.47 0% 0% 1% 100%
7.3 Racket #2 4.59 177,728 1026 4.58 1% 1% 1% 100%
7.4 PHP 4.68 375,464 297 4.67 0% 0% 2% 100%
8.1 PHP #2 5.13 446,852 262 5.12 0% 1% 1% 100%
8.8 Python 3 #6 5.54 262,360 800 5.53 1% 1% 1% 100%
9.4 C# Mono LLVM #3 5.94 214,936 863 5.92 1% 1% 1% 100%
9.7 Clojure 6.11 422,228 1044 6.10 1% 100% 0% 100%
10 Clojure #5 6.36 564,468 727 6.35 1% 100% 1% 100%
11 Java #7 6.71 274,448 1640 2.53 4% 17% 4% 100%
11 Python 3 #4 6.77 783,232 325 6.76 0% 1% 1% 100%
11 Clojure #4 7.23 465,944 997 7.22 1% 1% 100% 100%
13 Fortran Intel #2 8.01 194,340 772 8.00 1% 1% 1% 100%
14 Node.js #2 8.82 253,344 1202 8.80 1% 1% 0% 100%
15 Ruby 9.15 623,560 536 9.12 1% 1% 1% 100%
16 Ruby #2 9.96 130,824 255 9.95 1% 100% 1% 100%
21 Racket 13.16 506,312 547 13.14 0% 1% 1% 100%
33 Ruby JRuby 20.98 2,148,404 536 20.88 1% 4% 1% 100%
36 Dart #3 22.90 1,002,884 551 22.88 0% 1% 1% 100%
37 Ruby JRuby #2 23.47 1,267,564 255 23.42 0% 1% 1% 100%
40 Erlang HiPE 25.34 556,864 1302 25.31 1% 1% 1% 100%
41 C++ g++ #5 25.53 132,728 646 25.52 0% 1% 1% 100%
44 Dart #2 27.53 1,018,332 555 27.50 1% 0% 0% 100%
45 Smalltalk VW 28.16 385,128 754 28.14 0% 1% 1% 100%
75 Erlang HiPE #4 47.43 531,696 1167 47.40 0% 1% 1% 100%
85 Erlang HiPE #3 53.38 875,768 624 53.29 1% 1% 1% 100%
C# Mono LLVM #2 Failed
Go #4 Bad Output
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #5 Failed