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 manually vectorized SIMD programs.

× source secs mem gz busy cpu load
1.0 Rust 0.45 498,964 3040 0.77 25% 23% 100% 25%
1.2 C++ g++ #7 0.52 1,788 1853 0.52 0% 98% 0% 2%
1.4 C++ g++ #2 0.63 499,688 2093 0.65 0% 2% 2% 100%
1.7 Rust #2 0.76 995,004 1330 1.41 68% 28% 61% 29%
1.7 Rust #3 0.78 995,152 1097 1.53 31% 62% 53% 51%
1.9 C gcc #6 0.86 712,208 820 1.27 99% 28% 1% 19%
2.2 C gcc #2 0.97 994,172 750 1.45 15% 16% 86% 33%
3.0 Go #5 1.35 1,560,228 996 2.24 24% 35% 10% 99%
3.0 Go #6 1.35 1,344,560 1338 2.50 24% 65% 60% 37%
3.2 C gcc #5 1.41 993,912 647 1.43 0% 1% 0% 100%
3.4 C# .NET #7 1.50 950,648 1310 4.29 93% 63% 93% 38%
3.4 F# .NET #5 1.51 1,030,852 1140 4.19 93% 36% 58% 91%
3.4 Java  #8 1.53 687,864 2183 3.50 80% 46% 57% 46%
3.5 C# .NET #6 1.56 1,028,724 1621 3.79 72% 96% 27% 48%
3.5 F# .NET #4 1.58 1,030,356 1139 4.36 29% 94% 95% 59%
3.6 Julia #8 1.60 677,796 522 1.91 6% 6% 100% 9%
3.8 OCaml 1.68 34,024 1368 4.31 56% 57% 75% 69%
4.1 Swift 1.81 781,992 1286 2.28 3% 0% 48% 75%
4.1 Chapel #3 1.84 1,616,544 755 3.90 96% 38% 39% 40%
4.2 Julia #9 1.88 675,360 449 2.29 6% 99% 12% 5%
4.3 Go #2 1.90 826,096 611 2.15 3% 99% 9% 2%
4.6 Go #3 2.06 825,800 605 2.13 100% 1% 1% 1%
4.9 Ada 2012 GNAT #2 2.18 817,648 3283 2.53 0% 40% 76% 0%
5.0 Node js #7 2.21 1,534,824 1480 4.62 53% 22% 65% 68%
5.3 Java #3 2.37 1,173,044 1722 4.95 37% 53% 82% 36%
5.5 C++ g++ #3 2.44 500,020 840 2.49 0% 1% 1% 100%
6.2 C# .NET #5 2.78 1,033,020 1613 4.04 89% 6% 14% 36%
6.5 C++ g++ #6 2.91 1,513,700 1832 3.95 15% 33% 23% 66%
6.8 Java #6 3.01 2,046,960 752 3.66 42% 1% 78% 1%
6.9 Chapel #2 3.09 1,052,428 983 4.67 98% 19% 29% 6%
7.5 Haskell GHC #4 3.36 501,696 1041 3.97 6% 100% 6% 6%
7.7 C gcc #4 3.44 500,268 709 3.46 0% 0% 100% 1%
8.2 Free Pascal #2 3.67 520,464 771 3.70 0% 100% 0% 1%
8.8 Intel Fortran 3.90 985,352 1019 4.11 1% 100% 4% 1%
9.9 Java #5 4.39 1,109,192 1108 4.53 3% 7% 88% 4%
11 Java #4 5.03 1,903,504 651 5.18 5% 2% 5% 90%
13 C++ g++ 5.85 979,912 592 6.01 1% 100% 0% 2%
13 Haskell GHC #2 5.91 3,462,552 986 8.25 13% 13% 100% 13%
14 Perl #3 6.36 1,495,132 287 6.52 0% 0% 2% 100%
14 Lisp SBCL 6.40 1,490,256 904 6.42 0% 0% 0% 100%
16 PHP #3 7.06 534,336 446 11.90 14% 49% 40% 65%
16 Python 3 #6 7.20 1,005,184 814 10.75 20% 53% 48% 29%
19 Dart #5 8.58 2,509,484 933 11.80 25% 70% 29% 14%
20 Racket #2 8.75 697,776 1030 9.00 0% 100% 0% 2%
21 Python 3 #2 9.53 1,786,800 434 9.57 0% 0% 100% 0%
22 PHP 9.63 1,487,604 318 9.72 100% 0% 0% 0%
22 Python 3 9.72 1,971,752 479 9.75 0% 0% 100% 0%
25 PHP #2 11.33 1,785,868 281 11.55 1% 1% 100% 1%
26 Ruby #3 11.45 2,009,880 482 21.50 34% 70% 57% 26%
27 Ruby #5 12.06 1,612,104 295 12.65 100% 0% 0% 4%
27 Python 3 #4 12.21 4,020,620 335 12.38 1% 0% 100% 0%
28 Ada 2012 GNAT 12.32 514,776 937 12.39 0% 0% 0% 100%
32 Ruby #4 14.10 2,010,696 601 24.36 70% 26% 38% 38%
37 Node js #2 16.30 708,344 1221 17.18 67% 13% 23% 2%
38 Dart 16.80 1,209,712 642 17.62 2% 100% 1% 2%
46 Ruby #2 20.39 511,964 264 21.96 5% 100% 2% 0%
47 Matz's Ruby #2 21.02 492,816 264 21.29 1% 0% 100% 0%
52 Java #7 23.20 1,033,476 1647 18.17 8% 54% 11% 6%
56 Ruby 24.85 2,009,976 514 40.92 32% 5% 39% 88%
70 Julia #2 31.02 1,740,768 460 31.37 1% 0% 99% 1%
76 C++ g++ #5 33.85 765,348 720 33.91 0% 0% 0% 100%
81 Intel Fortran #2 36.08 753,776 772 37.87 1% 3% 100% 1%
88 Racket 39.38 2,430,384 553 39.57 100% 0% 0% 0%
91 Lua #2 40.62 2,654,732 553 41.04 0% 100% 1% 0%
93 Lua #5 41.53 2,162,968 752 42.08 100% 0% 1% 0%
119 Lua #4 53.13 634,232 594 53.48 0% 100% 1% 0%
120 Dart #3 53.22 7,875,800 563 59.25 6% 97% 3% 5%
204 Dart #2 91.00 7,876,888 568 99.16 5% 18% 80% 5%
212 Dart #4 94.18 1,037,220 880 96.36 16% 3% 80% 4%
361 Erlang #3 160.43 5,740,024 630 172.96 40% 13% 27% 28%
Erlang Timed Out
Erlang #4 Timed Out
Go Failed
Lisp SBCL #2 Bad Output
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Matz's Ruby #4 Failed
Matz's Ruby Failed
Matz's Ruby #3 Bad Output
Matz's Ruby #5 Failed
VW Smalltalk Bad Output