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.62 995,240 1376 2.74 25% 25% 24% 99%
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.21 1,496,196 707 5.11 96% 46% 59% 33%
1.4 Rust #3 2.30 995,120 1382 3.43 17% 17% 18% 100%
1.7 C gcc #5 2.81 994,084 647 2.80 100% 0% 1% 0%
1.8 C++ g++ #4 2.95 980,472 2280 4.56 50% 41% 16% 50%
1.8 C# .NET Core #6 2.97 1,034,408 1621 7.18 25% 45% 76% 97%
1.9 F# .NET Core #5 3.01 1,036,024 1140 8.42 98% 35% 91% 59%
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,792 1139 8.68 94% 37% 93% 55%
2.0 Rust 3.30 1,020,336 1871 4.13 16% 33% 1% 78%
2.3 C++ g++ #2 3.73 979,464 1087 4.83 35% 10% 11% 75%
2.3 OCaml 3.78 ? 1368 ? 61% 58% 61% 52%
2.4 Ada 2005 GNAT #2 3.92 817,932 3283 4.48 37% 24% 57% 0%
2.5 Go #2 4.00 824,356 611 4.16 1% 35% 68% 2%
2.5 Go #3 4.10 826,360 605 4.25 4% 97% 4% 0%
2.7 Go #6 4.44 2,228,580 1338 7.07 43% 44% 28% 46%
2.8 C++ g++ #3 4.47 499,908 840 4.46 1% 2% 100% 0%
2.8 C# .NET Core #5 4.50 1,033,744 1613 7.30 26% 48% 5% 88%
2.8 C gcc 4.54 1,971,008 1874 4.15 19% 91% 11% 18%
2.8 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.0 Java #3 4.92 1,144,680 1722 11.09 40% 83% 57% 46%
3.5 Java AOT #8 5.63 966,100 2183 9.47 57% 99% 70% 34%
3.5 Go #5 5.64 1,355,812 996 7.18 50% 26% 33% 20%
3.6 C# .NET Core #2 5.75 2,747,228 1674 9.12 27% 61% 22% 67%
3.6 Haskell GHC #3 5.85 501,324 1020 7.82 13% 8% 100% 13%
3.8 C++ g++ #6 6.16 1,552,928 1832 8.51 23% 30% 70% 17%
3.9 C# .NET Core #4 6.26 1,927,928 1714 7.76 34% 74% 27% 10%
4.1 C# .NET Core 6.68 1,030,812 1109 6.69 72% 1% 1% 29%
4.2 Chapel 6.78 1,003,284 643 9.06 99% 16% 7% 14%
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.1 Free Pascal #2 8.32 509,364 771 8.31 100% 0% 0% 0%
5.4 F# .NET Core #3 8.73 ? 557 ? 61% 28% 4% 16%
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.0 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.4 Java AOT #4 13.67 1,185,932 651 12.32 100% 0% 5% 0%
9.2 PHP 14.96 1,473,012 312 14.94 100% 0% 1% 0%
10 TypeScript 16.61 712,168 1141 18.03 68% 8% 22% 11%
10 Node js #7 16.96 707,640 1103 18.52 25% 30% 11% 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 2005 GNAT 21.46 517,480 937 21.45 2% 0% 0% 100%
13 Python 3 #6 21.71 1,005,340 898 20.37 28% 65% 26% 12%
13 Java AOT #6 21.71 ? 752 ? 22% 53% 1% 21%
13 Java #7 21.79 ? 1647 ? 57% 14% 51% 65%
14 C# .NET Core #3 22.99 1,418,500 915 32.61 37% 37% 57% 14%
15 Node js #2 24.38 706,196 1221 25.88 4% 64% 22% 18%
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%
28 Erlang HiPE 45.53 2,070,992 1302 110.61 56% 57% 57% 74%
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%
83 Fortran Intel #2 134.43 705,576 772 129.19 51% 30% 30% 6%
113 Python 3 #4 182.95 ? 466 ? 64% 35% 25% 34%
113 Erlang HiPE #4 183.55 1,996,644 1171 241.54 54% 25% 21% 37%
146 F# .NET Core 236.50 2,958,572 595 235.83 26% 63% 6% 17%
158 JRuby #2 255.16 2,172,356 264 242.29 9% 11% 50% 57%
192 Erlang HiPE #3 5 min 3,395,544 630 291.27 53% 19% 18% 36%
277 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
Swift Failed