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.68 994,588 1330 2.94 47% 25% 79% 24%
1.1 C++ g++ #2 1.88 499,844 2093 1.93 100% 1% 2% 0%
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 3.03 671,644 522 3.48 6% 98% 6% 4%
1.9 F# .NET Core #4 3.11 1,031,832 1139 8.42 88% 53% 90% 40%
1.9 C# .NET Core #6 3.12 1,028,260 1621 7.66 75% 77% 53% 41%
1.9 Java  #8 3.14 730,620 2183 7.02 72% 45% 51% 55%
2.1 Julia #9 3.58 669,380 449 3.97 4% 4% 98% 4%
2.2 Go #2 3.72 826,396 611 3.93 88% 1% 4% 13%
2.3 OCaml 3.83 33,784 1368 9.03 55% 65% 54% 63%
2.3 Swift 3.85 694,412 1286 4.67 36% 81% 1% 3%
2.4 Go #3 4.01 826,232 605 4.28 2% 11% 81% 13%
2.4 Ada 2012 GNAT #2 4.04 785,652 3283 4.60 40% 0% 0% 73%
2.5 Node js #8 4.15 1,472,268 1481 8.65 34% 63% 35% 77%
2.5 Node js #7 4.16 1,472,400 1480 8.57 54% 60% 41% 51%
2.5 C# .NET Core #5 4.19 1,019,688 1613 6.56 15% 30% 90% 21%
2.5 Go #6 4.23 1,466,788 1338 7.16 39% 47% 42% 41%
2.7 Go #5 4.52 1,559,476 996 7.51 72% 35% 50% 9%
2.8 C++ g++ #3 4.72 500,116 840 4.76 100% 0% 0% 0%
2.9 Java #3 4.80 1,173,232 1722 10.97 54% 83% 44% 47%
3.0 Intel Fortran 4.99 986,208 1019 5.07 1% 0% 0% 100%
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 Haskell GHC #3 6.42 501,528 1020 9.38 14% 100% 16% 16%
4.5 Java #5 7.60 1,126,380 1108 8.71 4% 13% 6% 91%
4.6 C gcc #4 7.67 500,388 709 7.77 100% 1% 0% 0%
4.7 Free Pascal #2 7.86 499,600 771 7.93 0% 1% 1% 100%
6.0 Java #6 10.12 2,060,324 752 12.28 51% 5% 21% 44%
6.2 Perl #3 10.50 1,494,784 287 10.62 0% 0% 1% 100%
6.8 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%
7.4 Java #4 12.45 1,930,340 651 13.09 11% 22% 39% 34%
8.6 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%
14 Node js #2 23.10 706,856 1221 24.80 14% 47% 38% 9%
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 Erlang HiPE 41.91 2,708,764 1302 116.88 73% 80% 62% 64%
28 Java #7 46.62 1,032,700 1647 48.41 30% 25% 26% 23%
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 66.49 1,690,684 460 67.56 100% 1% 0% 1%
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%
53 Lua #4 88.39 1,408,700 594 89.45 100% 1% 0% 0%
71 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%
117 Erlang HiPE #4 196.40 2,002,576 1171 274.37 57% 30% 37% 16%
165 Dart #4 278.04 1,240,876 885 5 min 31% 15% 20% 43%
204 Erlang HiPE #3 5 min 3,485,700 630 6 min 21% 51% 32% 17%
211 Python 3 #4 5 min 3,629,920 335 8 min 59% 20% 22% 41%
Dart #3 Failed
Dart #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
VW Smalltalk Bad Output