The Computer Language
Benchmarks Game

reverse-complement

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Rust #2 1.61 995,100 1376 2.72 25% 81% 39% 28%
1.1 C gcc #3 1.75 994,468 1438 3.96 48% 44% 95% 44%
1.2 C gcc #6 1.93 796,160 820 2.63 1% 69% 17% 53%
1.3 C gcc #2 2.13 994,312 750 3.14 85% 9% 41% 16%
1.4 Chapel #2 2.20 1,497,876 707 5.10 96% 42% 58% 38%
1.5 Rust #3 2.36 995,176 1382 3.48 17% 17% 19% 100%
1.7 C gcc #5 2.81 994,084 647 2.80 100% 0% 1% 0%
1.8 F# .NET Core #5 2.92 1,034,852 1140 8.12 91% 93% 36% 59%
1.8 C++ g++ #4 2.95 980,472 2280 4.56 50% 41% 16% 50%
1.9 C# .NET Core #6 2.98 1,035,064 1621 7.18 74% 77% 36% 56%
2.0 Java  #8 3.18 672,272 2183 7.17 67% 46% 43% 77%
2.0 F# .NET Core #4 3.19 1,035,184 1139 8.50 85% 57% 89% 41%
2.0 Rust 3.28 1,025,432 1871 4.15 11% 77% 30% 12%
2.3 C++ g++ #2 3.73 979,464 1087 4.83 35% 10% 11% 75%
2.3 Swift 3.76 770,644 1287 4.44 38% 2% 0% 80%
2.4 OCaml 3.78 ? 1368 ? 61% 58% 61% 52%
2.4 Ada 2012 GNAT #2 3.92 817,932 3283 4.48 37% 24% 57% 0%
2.5 Go #2 4.00 824,412 611 4.15 86% 14% 5% 1%
2.5 Go #3 4.09 826,640 605 4.24 1% 5% 84% 15%
2.6 Go #6 4.12 1,845,408 1338 6.92 50% 60% 33% 26%
2.8 C++ g++ #3 4.47 499,908 840 4.46 1% 2% 100% 0%
2.8 C# .NET Core #5 4.49 1,033,640 1613 7.23 75% 26% 39% 27%
2.8 C gcc 4.54 1,971,008 1874 4.15 19% 91% 11% 18%
2.9 Java AOT #3 4.60 1,023,192 1722 9.88 85% 47% 39% 46%
3.0 Fortran Intel 4.85 986,208 1019 4.84 17% 1% 1% 83%
3.1 Java #3 4.92 1,144,680 1722 11.09 40% 83% 57% 46%
3.2 F# .NET Core #3 5.11 2,033,848 557 6.02 5% 20% 77% 36%
3.3 Go #5 5.31 1,381,624 996 7.16 1% 52% 64% 19%
3.5 Java AOT #8 5.63 966,100 2183 9.47 57% 99% 70% 34%
3.5 C# .NET Core #4 5.68 1,730,680 1714 7.77 24% 21% 17% 76%
3.6 C# .NET Core #2 5.85 2,748,824 1674 9.18 32% 32% 61% 45%
3.6 Haskell GHC #3 5.85 501,324 1020 7.82 13% 8% 100% 13%
3.8 Chapel 6.09 1,003,488 643 8.40 99% 19% 7% 15%
3.8 C++ g++ #6 6.16 1,552,928 1832 8.51 23% 30% 70% 17%
4.1 C# .NET Core 6.67 1,030,532 1109 6.68 30% 3% 72% 1%
4.2 Java #5 6.79 1,121,672 1108 7.15 4% 97% 5% 3%
4.7 C gcc #4 7.60 500,308 709 7.59 1% 0% 100% 1%
5.2 Free Pascal #2 8.32 509,364 771 8.31 100% 0% 0% 0%
6.6 Perl #3 10.61 1,493,876 287 10.59 0% 1% 100% 0%
6.8 Java #6 10.92 ? 752 ? 86% 12% 2% 14%
6.8 Java AOT #5 10.98 795,044 1108 10.97 73% 0% 1% 27%
7.0 Lisp SBCL 11.31 1,406,764 904 11.29 0% 100% 2% 0%
7.1 Java #4 11.38 ? 651 ? 2% 19% 80% 2%
7.1 C++ g++ 11.42 979,760 592 11.41 1% 0% 1% 100%
7.5 PHP #3 12.08 ? 438 ? 3% 59% 29% 59%
8.5 Java AOT #4 13.67 1,185,932 651 12.32 100% 0% 5% 0%
9.3 PHP 14.96 1,473,012 312 14.94 100% 0% 1% 0%
10 TypeScript 16.70 712,544 1141 18.07 15% 20% 48% 31%
10 Python 3 #6 16.76 1,005,252 814 20.08 65% 21% 44% 17%
11 Node js #7 16.92 707,536 1103 18.45 19% 41% 5% 45%
11 Racket #2 17.08 555,148 1030 17.07 100% 1% 1% 2%
11 PHP #2 17.80 1,779,140 274 17.77 0% 1% 100% 0%
13 Ada 2012 GNAT 21.46 517,480 937 21.45 2% 0% 0% 100%
13 Java AOT #6 21.71 ? 752 ? 22% 53% 1% 21%
14 Java #7 21.79 ? 1647 ? 57% 14% 51% 65%
14 C# .NET Core #3 23.14 1,397,788 915 32.57 23% 55% 51% 13%
15 Node js #2 24.31 706,936 1221 25.75 36% 30% 5% 36%
16 Haskell GHC #2 25.86 3,460,312 982 32.41 56% 74% 65% 49%
19 Ruby #2 31.12 500,868 264 62.94 47% 60% 40% 57%
24 Matz's Ruby #2 38.95 492,568 264 38.92 60% 100% 22% 72%
27 C++ g++ #5 42.91 760,940 720 42.89 2% 26% 74% 1%
30 Erlang HiPE 47.62 1,864,772 1302 109.20 52% 49% 79% 51%
34 Racket 55.21 1,726,720 553 55.19 0% 0% 0% 100%
47 Lua #2 75.98 2,943,804 553 75.07 53% 4% 2% 58%
56 Lua #4 90.15 1,483,212 594 90.10 100% 0% 1% 0%
59 Ruby #3 94.85 ? 537 ? 87% 78% 66% 61%
67 Matz's Ruby #3 107.69 ? 517 ? 35% 53% 36% 38%
84 Fortran Intel #2 134.43 705,576 772 129.19 51% 30% 30% 6%
113 Erlang HiPE #4 181.36 1,516,172 1171 236.09 24% 16% 42% 56%
129 Python 3 #4 208.14 ? 335 ? 47% 29% 41% 32%
146 F# .NET Core 235.39 2,886,148 595 237.94 29% 6% 23% 51%
159 JRuby #2 255.16 2,172,356 264 242.29 9% 11% 50% 57%
189 Erlang HiPE #3 5 min 3,503,308 630 295.75 65% 26% 17% 17%
278 Truffle Ruby #2 7 min 3,372,664 264 7 min 80% 47% 52% 43%
Dart #3 Failed
Dart #2 Failed
F# .NET Core #2 Failed
Go Failed
Hack #2 Bad Output
Hack Bad Output
Java AOT #7 Bad Output
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Ruby Failed
Matz's Ruby Failed
JRuby #3 Failed
JRuby Failed
Truffle Ruby Failed
Truffle Ruby #3 Failed
VW Smalltalk Bad Output