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.42 145,900 812 0.57 0% 26% 20% 100%
1.2 Go #6 0.49 88,320 1278 0.84 30% 28% 98% 34%
1.3 C gcc #2 0.53 251,672 741 0.77 48% 81% 15% 19%
1.3 C gcc 0.56 330,908 1867 0.90 43% 14% 84% 27%
1.4 C++ g++ #4 0.59 217,564 2275 0.84 26% 78% 12% 34%
1.7 C gcc #5 0.70 249,652 638 0.70 0% 100% 0% 1%
1.7 Rust 0.72 265,472 1807 0.98 100% 3% 28% 14%
1.8 OCaml #3 0.75 ? 1314 ? 53% 51% 60% 57%
1.9 Ada 2005 GNAT #2 0.78 200,964 3220 0.91 63% 36% 22% 3%
1.9 C++ g++ #2 0.78 246,768 1082 1.02 95% 13% 18% 6%
2.1 Go 0.88 259,120 1243 1.02 16% 1% 30% 73%
2.2 Go #2 0.91 165,760 546 0.94 1% 7% 88% 10%
2.2 Go #3 0.92 165,392 543 0.94 10% 0% 4% 89%
2.4 Fortran Intel 1.01 248,636 1013 1.01 2% 2% 99% 3%
2.6 C gcc #4 1.10 101,228 704 1.09 1% 100% 0% 1%
2.8 C++ g++ #3 1.15 127,108 810 1.14 2% 2% 99% 2%
2.8 Java  #3 1.17 345,940 1661 2.42 41% 43% 57% 72%
3.1 Go #5 1.30 358,804 926 1.78 11% 34% 42% 53%
3.3 Java #6 1.38 526,204 745 1.68 4% 79% 1% 41%
3.4 C# .NET Core #2 1.39 762,992 1670 2.20 43% 24% 67% 28%
3.4 Haskell GHC #3 1.43 131,184 999 1.59 6% 6% 99% 2%
3.5 OCaml 1.45 ? 1064 ? 39% 51% 13% 57%
3.5 C++ g++ #6 1.45 424,332 1752 2.17 61% 21% 29% 41%
3.6 OCaml #4 1.50 138,672 2064 1.50 1% 9% 1% 100%
3.6 Scala #8 1.51 529,124 761 2.01 37% 91% 0% 7%
3.8 C# .NET Core #4 1.56 545,908 1708 2.19 93% 15% 23% 13%
3.8 C# Mono LLVM 1.57 197,008 1099 1.57 1% 1% 99% 2%
3.8 Chapel 1.57 282,352 643 2.06 99% 16% 8% 14%
3.9 C# Mono LLVM #2 1.63 625,444 1670 2.46 11% 53% 71% 20%
4.1 C# Mono LLVM #4 1.70 378,376 1708 1.94 31% 18% 67% 1%
4.2 Java #5 1.73 294,596 1098 1.86 6% 0% 98% 6%
4.4 C# .NET Core 1.83 296,684 1099 1.82 3% 1% 99% 2%
4.8 Pascal Free Pascal #2 1.99 124,536 751 1.99 1% 1% 100% 1%
5.2 Scala #4 2.17 369,576 501 2.32 1% 5% 4% 100%
5.4 Lisp SBCL 2.26 512,700 896 2.25 0% 1% 100% 0%
5.5 Java #4 2.28 368,760 592 2.39 4% 100% 1% 5%
6.1 C++ g++ 2.55 247,792 571 2.54 0% 0% 2% 100%
6.2 Haskell GHC #2 2.56 874,008 919 2.89 99% 4% 6% 6%
6.4 Clojure #5 2.65 579,024 727 4.05 55% 20% 58% 23%
6.4 Ada 2005 GNAT 2.67 127,544 885 2.66 0% 2% 100% 0%
6.4 Perl #3 2.67 378,924 284 2.67 100% 0% 1% 0%
7.3 Clojure 3.05 397,508 1044 4.18 23% 77% 31% 11%
7.5 Python 3 #6 3.11 266,972 800 4.56 20% 99% 2% 29%
8.0 Ruby #3 3.33 572,420 509 6.50 28% 89% 63% 18%
9.1 Node.js #7 3.76 294,284 1088 4.06 95% 4% 4% 7%
9.2 TypeScript 3.82 294,612 1131 4.11 5% 5% 96% 5%
9.7 PHP 4.02 336,164 297 4.01 2% 0% 100% 0%
9.9 Clojure #4 4.11 408,212 997 5.46 28% 39% 57% 13%
10 Racket #2 4.23 179,400 1026 4.22 2% 0% 100% 1%
11 PHP #2 4.50 441,272 262 4.49 0% 100% 1% 1%
11 OCaml #2 4.57 210,548 394 4.56 100% 2% 4% 0%
11 C# .NET Core #3 4.75 644,868 863 6.28 14% 45% 63% 13%
12 C# Mono LLVM #3 5.01 263,680 863 5.22 1% 99% 6% 1%
13 Ruby 5.24 686,764 536 9.66 77% 30% 28% 52%
14 Python 3 #4 5.71 1,013,040 325 5.70 1% 1% 100% 0%
15 Fortran Intel #2 6.43 155,376 772 6.43 1% 89% 1% 11%
17 Java #7 7.25 ? 1640 ? 12% 75% 50% 7%
19 Ruby #2 7.75 133,736 255 7.74 0% 0% 100% 1%
21 Ruby JRuby #3 8.72 2,361,496 509 23.96 84% 64% 63% 65%
23 Erlang 9.36 902,492 1302 21.31 65% 65% 47% 53%
23 Node.js #2 9.51 294,372 1202 9.84 1% 3% 1% 100%
26 Erlang HiPE 10.86 855,552 1302 27.02 59% 63% 79% 50%
28 Ruby JRuby 11.50 2,310,096 536 32.88 78% 73% 70% 68%
30 Racket 12.60 471,500 547 12.60 100% 1% 1% 0%
38 Ruby JRuby #2 15.71 1,490,472 255 24.02 36% 53% 27% 39%
45 C++ g++ #5 18.74 130,120 646 18.73 1% 1% 1% 100%
50 Dart #3 20.94 1,726,252 551 23.65 42% 28% 33% 15%
64 Dart #2 26.38 1,718,296 555 29.06 14% 23% 63% 11%
75 Smalltalk VW 31.04 331,812 754 31.02 0% 1% 100% 1%
98 Erlang #4 40.53 609,092 1167 52.35 11% 21% 58% 42%
115 Erlang HiPE #4 47.87 516,388 1167 62.83 56% 52% 15% 10%
142 Erlang HiPE #3 58.94 1,396,036 624 62.15 12% 54% 39% 4%
165 Erlang #3 68.35 1,230,964 624 70.04 52% 30% 23% 0%
Go #4 Bad Output
Hack Bad Output
Hack #2 Bad Output
Lua #3 Failed
Lua Failed
Scala #6 Failed
Scala #7 Failed
Scala #5 Failed