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.60 251,368 741 0.86 95% 84% 44% 15%
1.3 Rust 0.76 260,256 1985 0.98 27% 75% 19% 13%
1.3 C gcc 0.77 497,464 1867 1.14 24% 8% 94% 30%
1.3 C++ g++ #4 0.78 247,340 2275 1.17 23% 87% 11% 47%
1.4 C gcc #5 0.85 249,436 638 0.84 3% 0% 100% 1%
1.6 Fortran Intel 0.94 247,472 1013 0.93 1% 0% 3% 99%
1.7 Ada 2005 GNAT #2 1.01 202,680 3220 1.20 60% 42% 2% 24%
2.0 C++ g++ #2 1.17 248,120 1082 1.17 1% 100% 1% 3%
2.1 OCaml #3 1.24 ? 1314 ? 64% 31% 60% 50%
2.1 Go 1.28 265,856 1243 1.54 12% 1% 100% 10%
2.4 Haskell GHC #3 1.41 128,652 999 1.50 3% 4% 3% 99%
2.4 C++ g++ #3 1.41 126,500 810 1.41 99% 1% 0% 0%
2.4 C gcc #4 1.43 125,884 704 1.43 100% 0% 2% 0%
2.4 Java  #3 1.44 308,060 1661 2.91 47% 31% 85% 43%
2.6 Scala #8 1.52 520,732 761 1.98 46% 2% 36% 49%
2.8 Java #6 1.67 524,704 745 1.95 2% 45% 4% 70%
2.9 C# Mono LLVM 1.70 195,304 1099 1.70 1% 4% 1% 99%
3.0 OCaml #4 1.78 264,400 2064 1.78 2% 1% 1% 100%
3.1 Go #3 1.87 171,468 543 1.90 2% 100% 3% 2%
3.4 Go #2 2.02 171,588 546 2.05 89% 13% 2% 2%
3.5 Pascal Free Pascal #2 2.06 124,428 751 2.06 0% 1% 0% 100%
4.3 Scala #4 2.55 422,244 501 2.66 31% 2% 72% 4%
4.3 OCaml 2.57 ? 1064 ? 11% 16% 75% 70%
4.3 Java #4 2.59 486,716 592 2.73 38% 63% 4% 4%
4.4 Scala #7 2.62 751,808 949 4.96 74% 37% 40% 42%
4.9 Perl #3 2.94 375,804 284 2.93 1% 1% 0% 100%
5.0 Haskell GHC #2 3.01 873,924 919 3.50 7% 8% 9% 96%
5.5 Lisp SBCL 3.28 157,980 896 3.27 1% 1% 1% 100%
6.5 Ada 2005 GNAT 3.85 126,464 885 3.84 1% 100% 0% 1%
6.5 C++ g++ 3.89 247,640 571 3.88 100% 1% 0% 0%
6.6 Python 3 #6 3.92 262,588 800 5.69 24% 6% 45% 73%
6.9 OCaml #2 4.11 171,688 394 4.10 1% 1% 0% 100%
7.6 Clojure #5 4.54 517,384 727 6.58 29% 12% 58% 49%
7.7 Racket #2 4.60 173,960 1026 4.60 1% 100% 0% 1%
8.1 Clojure 4.86 441,480 1135 6.02 23% 7% 11% 86%
9.6 C# Mono LLVM #3 5.73 214,776 863 5.93 5% 0% 100% 1%
10 Clojure #4 5.99 472,052 1005 7.40 18% 83% 15% 9%
11 Python 3 #4 6.76 783,180 325 6.74 1% 9% 1% 92%
12 PHP 7.04 369,104 297 7.03 1% 1% 0% 100%
12 PHP #2 7.11 443,484 262 7.10 0% 0% 1% 100%
13 Fortran Intel #2 7.86 159,940 772 7.86 1% 1% 0% 100%
16 Java #7 9.44 ? 1640 ? 13% 19% 59% 26%
18 Ruby #2 10.46 129,336 255 10.45 0% 0% 1% 100%
19 Erlang HiPE 11.46 854,592 1302 22.12 49% 45% 69% 37%
23 Racket 13.79 512,532 547 13.78 1% 1% 100% 0%
27 Ruby JRuby #2 16.10 599,780 255 23.10 58% 20% 20% 48%
32 Dart #3 19.32 985,104 551 19.99 80% 1% 3% 22%
40 Dart #2 24.04 985,532 555 24.76 17% 3% 84% 1%
51 C++ g++ #5 30.33 178,784 646 30.32 100% 1% 0% 0%
65 Erlang HiPE #4 38.96 669,916 1167 47.87 21% 12% 8% 83%
103 Erlang HiPE #3 61.10 897,624 624 62.89 10% 24% 48% 22%
Go #4 Bad Output
Scala #6 Failed
Scala #5 Failed