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 #2 1.69 994,656 1330 2.96 25% 25% 46% 79%
1.1 C gcc #6 1.91 532,932 820 2.59 21% 16% 99% 0%
1.3 C gcc #2 2.20 994,344 750 3.28 40% 21% 70% 19%
1.7 F# .NET Core #5 2.85 1,031,504 1140 8.07 89% 54% 96% 43%
1.7 C gcc #5 2.86 994,160 647 2.91 1% 100% 1% 0%
1.8 Julia #8 2.99 663,192 522 3.34 5% 98% 4% 5%
1.8 F# .NET Core #4 3.11 1,031,832 1139 8.42 88% 53% 90% 40%
1.8 C# .NET Core #6 3.12 1,028,260 1621 7.66 75% 77% 53% 41%
1.9 Java  #8 3.16 712,368 2183 7.08 65% 47% 42% 70%
2.1 Julia #9 3.56 660,116 449 3.95 98% 4% 5% 4%
2.3 OCaml 3.83 33,784 1368 9.03 55% 65% 54% 63%
2.3 Go #6 3.83 1,782,940 1338 6.67 21% 74% 16% 62%
2.3 Swift 3.85 694,412 1286 4.67 36% 81% 1% 3%
2.3 Go #2 3.87 826,772 611 4.07 0% 1% 13% 90%
2.3 Node js #8 3.93 1,473,680 1481 8.55 54% 71% 46% 47%
2.4 Ada 2012 GNAT #2 4.04 785,652 3283 4.60 40% 0% 0% 73%
2.4 Node js #7 4.09 1,471,960 1480 8.44 62% 62% 43% 39%
2.5 Go #3 4.15 826,480 605 4.32 4% 24% 0% 76%
2.5 C# .NET Core #5 4.19 1,019,688 1613 6.56 15% 30% 90% 21%
2.8 C++ g++ #3 4.72 500,116 840 4.76 100% 0% 0% 0%
2.9 Java #3 4.86 1,173,216 1722 11.03 44% 53% 78% 52%
3.0 Intel Fortran 4.99 986,208 1019 5.07 1% 0% 0% 100%
3.1 Go #5 5.32 1,272,032 996 6.24 2% 39% 16% 60%
3.6 Chapel 6.04 1,052,780 976 11.46 99% 40% 32% 19%
3.8 C++ g++ #6 6.34 1,578,704 1832 9.01 20% 30% 1% 91%
3.8 C# .NET Core #4 6.38 1,846,780 1714 9.91 43% 22% 84% 7%
3.8 Haskell GHC #3 6.42 501,528 1020 9.38 14% 100% 16% 16%
3.9 C# .NET Core 6.64 1,030,328 1109 6.80 2% 29% 70% 2%
4.0 Java #6 6.76 2,061,508 752 8.13 81% 5% 33% 1%
4.5 Java #5 7.65 1,128,076 1108 8.12 36% 2% 4% 64%
4.5 C gcc #4 7.67 500,388 709 7.77 100% 1% 0% 0%
4.6 Free Pascal #2 7.86 499,600 771 7.93 0% 1% 1% 100%
4.8 F# .NET Core #3 8.07 2,025,740 557 8.78 38% 27% 2% 42%
5.4 C# .NET Core #2 9.06 2,704,060 1674 19.81 55% 48% 56% 60%
5.9 Java #4 10.01 1,930,844 651 10.50 3% 95% 5% 3%
6.2 Perl #3 10.50 1,494,784 287 10.62 0% 0% 1% 100%
6.7 Lisp SBCL 11.40 1,391,452 904 11.58 28% 1% 0% 73%
6.9 C++ g++ 11.62 979,952 592 11.74 77% 1% 0% 23%
8.5 PHP #3 14.40 531,492 438 22.70 58% 30% 22% 48%
10 Python 3 #2 16.93 1,777,852 434 17.58 78% 21% 4% 0%
10 Racket #2 17.26 658,780 1030 17.46 0% 1% 0% 100%
11 PHP 18.83 1,463,344 312 20.68 1% 19% 88% 2%
11 Ada 2012 GNAT 19.34 507,640 937 19.52 27% 0% 0% 73%
12 Python 3 19.63 1,942,076 479 20.97 85% 12% 9% 0%
12 Ruby #5 20.99 1,611,616 295 27.84 98% 7% 18% 9%
13 Python 3 #6 21.38 1,005,060 814 22.61 20% 11% 28% 47%
13 C# .NET Core #3 22.56 1,790,008 915 34.79 18% 58% 61% 17%
14 Node js #2 23.09 706,972 1221 24.97 75% 4% 4% 26%
15 PHP #2 25.01 1,772,604 274 25.70 23% 1% 3% 76%
16 Haskell GHC #2 26.59 3,463,932 982 20.47 14% 9% 8% 46%
18 Lisp SBCL #2 30.31 1,400,920 647 34.13 15% 6% 6% 86%
19 Ruby #2 31.53 511,784 264 32.78 12% 1% 2% 89%
23 Matz's Ruby #2 38.45 492,804 264 38.84 100% 0% 1% 0%
25 Java #7 41.67 1,031,728 1647 43.42 51% 7% 8% 37%
25 Erlang HiPE 41.91 2,708,764 1302 116.88 73% 80% 62% 64%
28 C++ g++ #5 47.45 750,100 720 47.82 0% 1% 0% 100%
33 Racket 55.91 1,733,824 553 56.50 48% 19% 0% 34%
36 Ruby #4 60.56 2,009,908 601 77.07 33% 21% 24% 49%
40 Julia #2 68.01 1,689,796 460 69.24 61% 0% 0% 40%
46 Lua #2 77.65 2,932,848 553 77.85 26% 1% 4% 69%
48 Lua #5 80.31 2,168,372 752 80.74 0% 1% 0% 99%
52 Lua #4 88.39 1,408,700 594 89.45 100% 1% 0% 0%
70 Ruby #3 118.84 1,513,868 517 248.80 59% 37% 48% 66%
80 Intel Fortran #2 135.13 744,160 772 170.79 7% 17% 17% 85%
116 Erlang HiPE #4 196.40 2,002,576 1171 274.37 57% 30% 37% 16%
129 F# .NET Core 217.69 2,400,560 595 247.53 62% 14% 10% 28%
165 Dart #4 278.04 1,240,876 885 5 min 31% 15% 20% 43%
203 Erlang HiPE #3 5 min 3,485,700 630 6 min 21% 51% 32% 17%
210 Python 3 #4 5 min 3,629,920 335 8 min 59% 20% 22% 41%
Dart #3 Failed
Dart #2 Failed
F# .NET Core #2 Failed
Go Failed
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Ruby Failed
Matz's Ruby #5 Failed
Matz's Ruby #3 Bad Output
Matz's Ruby Failed
Matz's Ruby #4 Failed
TypeScript Failed
VW Smalltalk Bad Output