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.60 995,212 1376 2.73 24% 25% 96% 30%
1.1 C gcc #3 1.76 994,524 1438 3.98 46% 96% 43% 44%
1.2 C gcc #6 1.93 795,408 820 2.63 37% 98% 2% 1%
1.3 C gcc #2 2.16 994,328 750 3.19 21% 32% 20% 76%
1.4 Chapel #2 2.20 1,497,720 707 5.10 96% 43% 59% 36%
1.4 Rust #3 2.28 995,260 1382 3.41 17% 18% 17% 100%
1.7 C gcc 2.76 1,970,840 1874 3.96 87% 29% 29% 0%
1.8 C gcc #5 2.83 994,124 647 2.82 100% 1% 0% 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.94 980,524 2280 4.53 15% 50% 52% 40%
1.9 C# .NET Core #6 2.98 1,035,064 1621 7.18 74% 77% 36% 56%
2.0 F# .NET Core #4 3.19 1,035,184 1139 8.50 85% 57% 89% 41%
2.1 Java  #8 3.29 724,008 2183 7.40 85% 57% 45% 42%
2.1 Rust 3.32 1,012,492 1871 4.14 0% 32% 20% 78%
2.3 C++ g++ #2 3.69 979,532 1087 4.77 17% 10% 11% 93%
2.3 Swift 3.73 785,980 1287 4.41 3% 6% 76% 38%
2.4 OCaml 3.77 ? 1368 ? 52% 65% 59% 54%
2.4 Ada 2012 GNAT #2 3.88 796,392 3283 4.44 0% 57% 57% 1%
2.5 Go #2 4.00 826,668 611 4.15 4% 15% 4% 85%
2.5 Go #3 4.03 826,448 605 4.18 4% 2% 85% 16%
2.6 Go #6 4.20 1,532,052 1338 6.80 44% 29% 24% 72%
2.8 C++ g++ #3 4.42 499,984 840 4.41 0% 100% 0% 1%
2.8 C# .NET Core #5 4.49 1,033,640 1613 7.23 75% 26% 39% 27%
2.9 Java AOT #3 4.60 1,023,192 1722 9.88 85% 47% 39% 46%
3.0 Fortran Intel 4.79 986,208 1019 4.78 1% 97% 3% 0%
3.1 Java #3 4.94 1,143,552 1722 10.78 52% 43% 44% 82%
3.2 F# .NET Core #3 5.11 2,033,848 557 6.02 5% 20% 77% 36%
3.4 Chapel 5.44 1,003,148 643 7.38 98% 17% 8% 15%
3.5 Java AOT #8 5.63 966,100 2183 9.47 57% 99% 70% 34%
3.5 Haskell GHC #3 5.67 501,336 1020 7.64 26% 12% 12% 86%
3.5 C# .NET Core #4 5.68 1,730,680 1714 7.77 24% 21% 17% 76%
3.7 C# .NET Core #2 5.85 2,748,824 1674 9.18 32% 32% 61% 45%
3.8 Java #6 6.01 2,042,236 752 7.11 4% 81% 2% 34%
3.8 Go #5 6.07 1,381,664 996 7.14 3% 96% 8% 14%
3.9 C++ g++ #6 6.20 1,544,532 1832 8.61 91% 31% 1% 18%
4.2 C# .NET Core 6.67 1,030,532 1109 6.68 30% 3% 72% 1%
4.3 Java #5 6.89 1,120,344 1108 7.18 82% 19% 2% 4%
4.8 C gcc #4 7.61 500,388 709 7.60 0% 0% 1% 100%
5.1 Free Pascal #2 8.19 524,416 771 8.17 100% 0% 0% 1%
6.0 Java #4 9.66 1,921,848 651 9.90 97% 4% 2% 2%
6.6 Perl #3 10.61 1,493,876 287 10.59 0% 1% 100% 0%
6.9 Java AOT #5 10.98 795,044 1108 10.97 73% 0% 1% 27%
6.9 C++ g++ 11.09 979,804 592 11.08 37% 2% 2% 63%
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.62 708,764 1141 18.15 17% 41% 48% 5%
10 Node js #7 16.70 709,096 1103 18.25 10% 25% 64% 12%
10 Python 3 #6 16.76 1,005,252 814 20.08 65% 21% 44% 17%
11 Racket #2 17.14 562,944 1030 17.13 1% 5% 96% 1%
11 PHP #2 17.80 1,779,140 274 17.77 0% 1% 100% 0%
12 Ada 2012 GNAT 18.91 491,532 937 18.90 100% 0% 1% 0%
13 Haskell GHC #2 20.18 3,463,808 982 28.37 68% 54% 66% 66%
14 Java AOT #6 21.71 ? 752 ? 22% 53% 1% 21%
14 C# .NET Core #3 23.14 1,397,788 915 32.57 23% 55% 51% 13%
15 Node js #2 23.61 706,568 1221 25.16 54% 17% 7% 30%
16 Java #7 25.93 ? 1647 ? 70% 44% 34% 41%
21 Ruby #2 32.95 504,624 264 64.25 41% 43% 63% 51%
24 Matz's Ruby #2 38.95 492,568 264 38.92 60% 100% 22% 72%
29 C++ g++ #5 46.22 716,028 720 46.20 1% 100% 0% 1%
30 Erlang HiPE 47.62 1,864,772 1302 109.20 52% 49% 79% 51%
34 Racket 54.86 1,730,756 553 54.85 1% 100% 0% 1%
39 Fortran Intel #2 62.38 764,260 772 62.35 0% 0% 1% 100%
47 Lua #2 75.98 2,932,776 553 73.62 50% 1% 1% 49%
50 Ruby #3 79.77 ? 537 ? 60% 85% 57% 46%
56 Lua #4 89.34 1,408,372 594 89.29 100% 1% 1% 0%
67 Matz's Ruby #3 107.69 ? 517 ? 35% 53% 36% 38%
68 Ruby #4 109.57 2,002,576 622 140.59 29% 48% 49% 31%
113 Erlang HiPE #4 181.36 1,516,172 1171 236.09 24% 16% 42% 56%
130 Python 3 #4 208.14 ? 335 ? 47% 29% 41% 32%
147 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%
190 Erlang HiPE #3 5 min 3,503,308 630 295.75 65% 26% 17% 17%
280 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
Lisp SBCL Timed Out
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Ruby Failed
Matz's Ruby Failed
Matz's Ruby #4 Failed
JRuby #3 Failed
JRuby Failed
Truffle Ruby Failed
Truffle Ruby #4 Make Error
Truffle Ruby #3 Failed
VW Smalltalk Bad Output