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,912 1330 1.34 27% 81% 46% 27%
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 C gcc #5 1.40 994,020 647 1.42 100% 1% 0% 1%
2.3 Go #6 1.43 1,467,692 1338 2.74 63% 42% 40% 47%
2.3 C# .NET Core #7 1.46 967,044 1310 4.17 41% 93% 96% 57%
2.3 Julia #8 1.47 671,232 522 1.76 8% 7% 97% 8%
2.4 Go #5 1.48 1,585,392 996 2.49 29% 32% 90% 17%
2.4 F# .NET Core #5 1.53 1,030,248 1140 4.24 95% 89% 35% 58%
2.4 Java  #8 1.53 720,672 2183 3.57 52% 63% 59% 59%
2.6 C# .NET Core #6 1.63 1,028,372 1621 3.90 93% 48% 75% 24%
2.6 OCaml 1.64 33,620 1368 4.25 63% 62% 68% 65%
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 Julia #9 1.77 669,320 449 2.00 7% 5% 97% 5%
2.8 Swift 1.78 733,260 1286 2.35 1% 53% 74% 4%
2.8 Go #2 1.78 825,968 611 1.83 2% 0% 1% 100%
3.1 Go #3 1.93 826,264 605 2.05 2% 14% 3% 88%
3.3 Node js #8 2.07 1,520,640 1481 4.26 14% 67% 61% 62%
3.3 Node js #7 2.08 1,520,648 1480 4.23 37% 42% 33% 92%
3.4 Ada 2012 GNAT #2 2.15 785,536 3283 2.47 0% 75% 39% 0%
3.8 Java #3 2.41 1,172,252 1722 5.03 49% 37% 84% 39%
3.9 C++ g++ #3 2.49 500,064 840 2.50 0% 0% 100% 0%
4.4 C# .NET Core #5 2.80 1,031,492 1613 4.01 6% 35% 6% 96%
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.6 Java #6 2.93 2,054,224 752 3.72 35% 79% 2% 11%
4.9 Chapel #2 3.07 1,052,352 983 4.57 98% 19% 28% 4%
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.69 0% 0% 0% 100%
6.2 Intel Fortran 3.88 985,356 1019 3.89 0% 0% 0% 100%
7.0 Java #5 4.44 1,122,168 1108 4.63 5% 36% 59% 4%
7.7 Java #4 4.82 1,926,364 651 5.01 92% 2% 7% 2%
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.40 1,490,512 904 6.49 100% 1% 0% 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%
15 Racket #2 9.76 567,428 1030 9.80 0% 0% 0% 100%
16 Python 3 9.78 1,956,908 479 9.95 1% 100% 0% 0%
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 17.06 1,184,460 1221 17.66 51% 49% 2% 2%
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 22.25 1,032,288 1647 15.85 10% 7% 49% 5%
40 Erlang HiPE 25.49 2,842,416 1302 68.58 70% 59% 71% 68%
45 Julia #2 28.54 1,732,884 460 28.90 0% 100% 1% 0%
51 Racket 32.02 1,733,988 553 32.24 1% 0% 100% 0%
54 C++ g++ #5 33.92 491,752 720 34.09 0% 0% 100% 0%
55 Intel Fortran #2 34.92 747,368 772 35.05 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 #5 Failed
Matz's Ruby Failed
Matz's Ruby #3 Bad Output
Matz's Ruby #4 Failed
VW Smalltalk Bad Output