The Computer Language
Benchmarks Game

reverse-complement

Always look at the source code.

Look at the slower simple sequential programs, and  look at the parallel programs written for multicore, and  look at the low-level programs written for SIMD.

× source secs mem gz busy cpu load
1.0 Rust 0.46 499,024 3040 0.83 26% 80% 47% 28%
1.4 C++ g++ #2 0.63 499,704 2093 0.64 0% 100% 2% 0%
1.7 Rust #2 0.76 995,032 1330 1.36 26% 58% 48% 46%
1.7 Rust #3 0.79 995,112 1097 1.53 84% 32% 48% 31%
1.9 C gcc #6 0.86 698,264 820 1.27 1% 18% 100% 28%
2.1 C gcc #2 0.98 994,220 750 1.47 14% 86% 34% 16%
3.1 C gcc #5 1.41 994,048 647 1.42 1% 0% 1% 99%
3.1 Go #6 1.43 1,467,392 1338 2.67 48% 38% 55% 45%
3.2 C# .NET #7 1.48 959,848 1310 4.18 30% 63% 93% 96%
3.2 Go #5 1.48 1,560,048 996 2.51 32% 97% 28% 13%
3.3 Julia #8 1.50 671,028 522 1.77 7% 9% 96% 7%
3.3 F# .NET #5 1.51 1,030,852 1140 4.19 93% 36% 58% 91%
3.4 Java  #8 1.54 702,332 2183 3.55 78% 46% 49% 57%
3.4 C# .NET #6 1.56 1,029,544 1621 3.78 26% 82% 94% 40%
3.4 F# .NET #4 1.58 1,030,356 1139 4.36 29% 94% 95% 59%
3.6 Chapel #3 1.65 1,882,564 755 3.51 96% 38% 38% 41%
3.6 OCaml 1.66 34,044 1368 4.25 61% 65% 61% 69%
3.9 Go #2 1.78 826,368 611 1.83 1% 99% 0% 2%
3.9 Julia #9 1.79 669,516 449 2.05 6% 7% 6% 97%
3.9 Swift 1.79 788,908 1286 2.25 74% 19% 2% 30%
4.2 Go #3 1.93 826,440 605 1.98 3% 12% 88% 1%
4.6 Node js #8 2.12 1,525,056 1481 4.38 48% 27% 70% 62%
4.6 Node js #7 2.13 1,521,316 1480 4.32 33% 51% 52% 68%
4.7 Ada 2012 GNAT #2 2.17 821,516 3283 2.51 40% 0% 1% 75%
5.3 C++ g++ #3 2.42 499,964 840 2.43 0% 100% 0% 0%
5.3 Java #3 2.44 1,172,748 1722 5.13 33% 52% 40% 85%
6.1 C# .NET #5 2.80 1,033,036 1613 4.04 14% 37% 89% 4%
6.3 C++ g++ #6 2.88 1,505,952 1832 4.03 22% 35% 80% 3%
6.4 Java #6 2.94 2,054,460 752 3.67 1% 78% 10% 36%
6.4 Haskell GHC #3 2.95 501,572 1020 3.51 6% 6% 6% 100%
6.7 Chapel #2 3.05 1,052,280 983 4.59 98% 19% 28% 5%
7.4 C gcc #4 3.40 500,236 709 3.44 1% 0% 0% 100%
8.0 Free Pascal #2 3.67 520,464 771 3.70 0% 100% 0% 1%
8.5 Intel Fortran 3.90 985,352 1019 4.11 1% 100% 4% 1%
9.7 Java #5 4.44 1,122,300 1108 4.64 37% 59% 2% 7%
11 Java #4 4.87 1,925,516 651 5.24 62% 33% 8% 5%
13 C++ g++ 5.96 979,844 592 5.97 0% 100% 0% 0%
13 Haskell GHC #2 6.17 3,462,428 982 7.87 100% 9% 9% 9%
14 Perl #3 6.36 1,495,132 287 6.52 0% 0% 2% 100%
14 Lisp SBCL 6.38 1,490,300 904 6.44 100% 1% 0% 0%
15 PHP #3 7.06 534,336 446 11.90 14% 49% 40% 65%
16 Python 3 #6 7.16 1,005,968 814 10.65 20% 53% 47% 29%
21 PHP 9.63 1,487,604 318 9.72 100% 0% 0% 0%
21 Python 3 9.69 1,979,836 479 9.72 100% 0% 0% 0%
21 Python 3 #2 9.74 1,781,700 434 9.77 0% 0% 0% 100%
21 Racket #2 9.80 566,208 1030 10.18 1% 1% 2% 100%
23 Ruby #3 10.58 2,009,736 517 20.20 50% 13% 96% 32%
25 PHP #2 11.33 1,785,868 281 11.55 1% 1% 100% 1%
26 Ada 2012 GNAT 11.82 516,660 937 11.84 0% 100% 0% 0%
27 Python 3 #4 12.33 4,020,892 335 12.38 0% 100% 0% 0%
28 Ruby #4 12.64 2,011,600 601 25.65 57% 67% 25% 55%
37 Node js #2 16.81 1,194,448 1221 17.42 30% 68% 2% 4%
44 Ruby #2 20.00 511,524 264 21.51 3% 100% 2% 3%
47 Matz's Ruby #2 21.41 492,788 264 43.01 1% 100% 0% 100%
48 Ruby 21.88 2,009,892 548 37.54 95% 6% 28% 43%
50 Java #7 22.74 1,032,516 1647 17.76 16% 5% 12% 45%
53 Ruby #5 24.49 1,611,480 295 25.41 1% 1% 1% 100%
56 Erlang HiPE 25.62 2,765,104 1302 68.99 56% 52% 77% 85%
63 Julia #2 28.65 1,715,632 460 29.18 1% 100% 1% 1%
70 Racket 32.04 1,733,900 553 32.85 1% 1% 100% 1%
74 C++ g++ #5 34.04 762,944 720 34.39 0% 100% 0% 1%
79 Intel Fortran #2 36.08 753,776 772 37.87 1% 3% 100% 1%
90 Dart #3 41.36 6,600,124 555 48.63 61% 20% 9% 27%
97 Lua #5 44.41 2,165,032 752 44.52 0% 0% 100% 0%
101 Lua #2 46.25 2,654,696 553 46.54 100% 0% 0% 0%
121 Lua #4 55.41 634,128 594 55.74 0% 100% 0% 0%
121 Dart #2 55.44 6,598,188 561 63.99 8% 9% 19% 80%
246 Dart #4 112.66 1,155,112 885 116.23 32% 57% 5% 10%
267 Erlang HiPE #4 122.51 1,991,896 1171 169.75 15% 75% 16% 33%
413 Erlang HiPE #3 188.99 6,293,804 630 201.05 20% 30% 13% 44%
Go Failed
Lisp SBCL #2 Timed Out
OCaml #2 Make Error
OCaml #3 Make Error
OCaml #4 Make Error
Matz's Ruby #5 Failed
Matz's Ruby Failed
Matz's Ruby #3 Bad Output
Matz's Ruby #4 Failed
VW Smalltalk Bad Output