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.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%
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.3 Rust 0.93 267,552 1807 1.19 13% 2% 100% 17%
2.4 C++ g++ #2 0.99 248,244 1082 0.98 1% 8% 0% 100%
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 Scala #8 1.36 477,268 761 1.80 39% 4% 90% 4%
3.3 Java #6 1.38 526,204 745 1.68 4% 79% 1% 41%
3.3 C# .NET Core #2 1.38 748,864 1670 2.19 28% 34% 64% 36%
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.6 OCaml #4 1.50 138,672 2064 1.50 1% 9% 1% 100%
3.8 C# Mono LLVM 1.57 197,008 1099 1.57 1% 1% 99% 2%
3.9 C# .NET Core #4 1.60 525,376 1708 2.21 87% 21% 15% 19%
3.9 C# Mono LLVM #2 1.63 625,444 1670 2.46 11% 53% 71% 20%
4.0 Chapel 1.67 280,252 643 2.20 99% 16% 9% 11%
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.5 C# .NET Core 1.85 297,144 1099 1.85 2% 97% 2% 1%
4.8 Pascal Free Pascal #2 1.99 124,536 751 1.99 1% 1% 100% 1%
5.2 Scala #4 2.18 376,408 501 2.28 4% 100% 1% 3%
5.5 Lisp SBCL 2.27 304,892 896 2.26 100% 1% 2% 0%
5.5 Java #4 2.28 368,760 592 2.39 4% 100% 1% 5%
5.6 Scala #7 2.32 831,632 949 4.88 34% 50% 38% 91%
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%
8.9 Node.js #7 3.68 254,912 1088 3.97 99% 5% 2% 4%
9.0 TypeScript 3.73 254,900 1131 4.00 49% 54% 3% 4%
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%
12 C# Mono LLVM #3 5.01 263,680 863 5.22 1% 99% 6% 1%
12 C# .NET Core #3 5.18 637,912 863 7.10 36% 19% 17% 68%
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.47 255,128 1202 9.76 100% 3% 2% 1%
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%
59 Dart #3 24.59 1,731,448 551 27.32 15% 9% 44% 45%
73 Dart #2 30.25 1,723,864 555 33.06 16% 57% 13% 25%
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 #5 Failed