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 C++ g++ #2 0.63 499,668 2093 0.64 2% 0% 0% 100%
1.2 Rust #2 0.74 994,956 1330 1.36 47% 59% 49% 28%
1.4 C gcc #6 0.86 624,308 820 1.23 27% 18% 99% 0%
1.5 C gcc #2 0.97 994,224 750 1.47 34% 17% 14% 87%
2.2 Go #6 1.38 1,465,376 1338 2.54 51% 47% 38% 50%
2.2 C gcc #5 1.40 994,020 647 1.42 100% 1% 0% 1%
2.4 Julia #8 1.49 671,884 522 1.76 7% 97% 8% 7%
2.4 Go #5 1.51 1,559,684 996 2.52 76% 9% 38% 43%
2.4 F# .NET Core #5 1.53 1,030,248 1140 4.24 95% 89% 35% 58%
2.5 Java  #8 1.58 677,584 2183 3.76 55% 74% 48% 61%
2.5 C# .NET Core #6 1.60 1,028,352 1621 3.85 26% 43% 80% 92%
2.6 OCaml 1.64 33,612 1368 4.26 61% 64% 69% 66%
2.6 Chapel #3 1.64 2,046,052 755 3.65 96% 45% 39% 42%
2.8 F# .NET Core #4 1.74 1,031,052 1139 4.65 39% 91% 87% 50%
2.8 Swift 1.78 733,260 1286 2.35 1% 53% 74% 4%
2.8 Go #2 1.79 825,932 611 2.12 4% 96% 4% 14%
3.0 Julia #9 1.88 669,464 449 2.16 5% 97% 5% 7%
3.1 Go #3 1.93 826,128 605 2.04 12% 1% 90% 3%
3.4 Ada 2012 GNAT #2 2.15 785,536 3283 2.47 0% 75% 39% 0%
3.5 Node js #7 2.19 1,340,520 1480 4.46 48% 55% 50% 50%
3.5 Node js #8 2.20 1,340,300 1481 4.43 60% 21% 51% 69%
3.7 Java #3 2.30 1,173,596 1722 5.08 41% 86% 37% 56%
3.9 C++ g++ #3 2.49 500,064 840 2.50 0% 0% 100% 0%
4.3 C# .NET Core #5 2.72 1,030,884 1613 4.01 3% 89% 39% 17%
4.5 C++ g++ #6 2.86 1,383,728 1832 3.86 33% 14% 66% 22%
4.6 Haskell GHC #3 2.92 501,644 1020 3.43 6% 100% 6% 6%
4.9 Chapel #2 3.07 1,052,352 983 4.57 98% 19% 28% 4%
4.9 Java #6 3.10 2,060,100 752 3.77 14% 66% 41% 1%
5.3 C gcc #4 3.36 500,200 709 3.38 0% 0% 1% 100%
5.8 Free Pascal #2 3.67 488,916 771 3.73 1% 0% 100% 1%
6.2 Intel Fortran 3.93 985,352 1019 3.94 0% 100% 0% 0%
7.0 Java #5 4.38 1,125,552 1108 4.53 10% 60% 3% 31%
7.6 Java #4 4.78 1,930,420 651 4.95 2% 10% 56% 35%
9.9 C++ g++ 6.21 979,956 592 6.23 0% 0% 0% 100%
10 Haskell GHC #2 6.32 3,462,992 982 8.41 12% 100% 11% 10%
10 Perl #3 6.35 1,495,212 287 6.54 100% 2% 0% 0%
10 Lisp SBCL 6.49 1,394,156 904 6.61 1% 1% 100% 0%
11 Python 3 #6 7.15 1,005,204 814 10.62 81% 1% 47% 20%
12 PHP #3 7.30 508,064 438 11.41 2% 30% 55% 69%
15 Ruby #4 9.20 2,009,456 601 18.23 75% 42% 43% 38%
15 Ruby #3 9.27 2,009,132 517 17.64 49% 94% 9% 39%
15 Python 3 #2 9.58 1,762,536 434 9.68 1% 0% 0% 100%
16 Python 3 9.78 1,956,908 479 9.95 1% 100% 0% 0%
16 Racket #2 9.78 565,776 1030 9.94 0% 0% 100% 2%
16 PHP 9.81 1,457,608 312 9.91 100% 0% 0% 0%
18 PHP #2 11.57 1,778,132 274 11.59 0% 100% 0% 0%
19 Ada 2012 GNAT 11.90 525,120 937 11.96 0% 0% 100% 0%
20 Python 3 #4 12.35 4,020,772 335 12.43 100% 0% 0% 0%
21 Ruby #5 13.20 1,610,856 295 17.77 9% 100% 11% 15%
27 Node js #2 16.77 707,280 1221 17.56 39% 49% 4% 13%
30 Ruby #2 18.77 510,944 264 19.26 2% 1% 100% 0%
32 Ruby 20.16 2,009,012 548 33.10 96% 24% 5% 39%
34 Matz's Ruby #2 21.41 492,788 264 43.01 1% 100% 0% 100%
35 Java #7 21.81 1,034,140 1647 19.79 6% 2% 55% 28%
40 Erlang HiPE 25.49 2,842,416 1302 68.58 70% 59% 71% 68%
47 Julia #2 29.42 1,681,416 460 29.80 0% 0% 100% 1%
51 Racket 31.88 1,733,596 553 31.99 0% 100% 0% 0%
54 C++ g++ #5 33.92 491,752 720 34.09 0% 0% 100% 0%
58 Intel Fortran #2 36.27 670,808 772 36.46 0% 100% 0% 0%
65 Dart #3 41.04 6,604,280 555 47.64 74% 19% 17% 6%
67 Lua #5 42.04 2,120,492 752 42.26 0% 0% 30% 70%
73 Lua #2 45.70 2,654,644 553 46.09 0% 0% 0% 100%
88 Lua #4 55.42 634,224 594 55.70 0% 0% 100% 0%
90 Dart #2 56.62 6,599,464 561 64.46 87% 15% 6% 6%
181 Dart #4 113.77 1,154,640 885 116.98 33% 58% 6% 6%
199 Erlang HiPE #4 125.55 1,521,652 1171 173.40 14% 17% 49% 57%
297 Erlang HiPE #3 186.84 6,129,676 630 200.82 6% 59% 12% 30%
Go Failed
Lisp SBCL #2 Timed Out
OCaml #2 Make Error
OCaml #3 Make Error
OCaml #4 Make Error
Matz's Ruby #4 Failed
Matz's Ruby #3 Bad Output
Matz's Ruby Failed
Matz's Ruby #5 Failed
VW Smalltalk Bad Output