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,072 1376 2.71 24% 31% 95% 24%
1.1 C gcc #3 1.76 994,488 1438 3.98 97% 43% 44% 46%
1.2 C gcc #6 1.96 609,560 820 2.65 16% 98% 1% 23%
1.3 C gcc #2 2.16 994,396 750 3.19 25% 20% 40% 64%
1.4 Chapel #2 2.20 1,497,148 707 5.11 96% 43% 63% 37%
1.4 Rust #3 2.28 995,156 1382 3.40 97% 17% 21% 17%
1.7 C gcc 2.78 1,971,120 1874 3.98 91% 23% 29% 2%
1.8 C gcc #5 2.82 994,116 647 2.82 100% 2% 1% 0%
1.8 C++ g++ #4 2.93 980,716 2280 4.52 51% 23% 33% 51%
1.9 C# .NET Core #6 2.99 1,035,748 1621 7.23 26% 52% 91% 76%
1.9 F# .NET Core #5 3.03 1,037,000 1140 8.38 95% 90% 54% 41%
2.0 F# .NET Core #4 3.13 1,038,160 1139 8.29 86% 39% 88% 54%
2.1 Java  #8 3.32 609,712 2183 7.54 64% 44% 44% 76%
2.1 Rust 3.32 1,006,100 1871 4.15 78% 0% 32% 16%
2.3 C++ g++ #2 3.71 979,584 1087 4.80 75% 11% 11% 35%
2.3 Swift 3.73 785,980 1287 4.41 3% 6% 76% 38%
2.4 OCaml 3.79 ? 1368 ? 54% 56% 65% 54%
2.5 Ada 2012 GNAT #2 3.95 785,520 3283 4.48 74% 0% 40% 1%
2.5 Substrate VM #3 3.96 1,020,588 1722 8.74 47% 53% 37% 88%
2.5 Go #2 4.00 826,728 611 4.16 86% 1% 14% 6%
2.5 Go #3 4.03 826,740 605 4.19 1% 1% 6% 99%
2.6 Go #6 4.25 1,467,960 1338 6.88 38% 23% 30% 72%
2.7 F# .NET Core #3 4.33 1,962,044 557 5.90 20% 40% 1% 78%
2.8 C++ g++ #3 4.43 499,976 840 4.42 100% 1% 0% 0%
2.9 C# .NET Core #5 4.64 1,032,912 1613 7.40 71% 25% 48% 17%
3.0 Fortran Intel 4.78 985,316 1019 4.77 1% 100% 0% 0%
3.1 Java #3 4.95 1,143,368 1722 10.88 39% 59% 68% 54%
3.4 Chapel 5.44 1,002,980 643 7.38 99% 16% 8% 15%
3.5 C# .NET Core #4 5.68 1,691,616 1714 7.77 15% 90% 8% 26%
3.5 Haskell GHC #3 5.69 501,244 1020 7.57 59% 12% 11% 53%
3.5 Substrate VM #8 5.69 931,720 2183 9.21 56% 22% 21% 64%
3.7 Java #6 5.99 2,042,544 752 7.08 2% 82% 3% 33%
3.8 Go #5 6.08 1,381,564 996 7.19 48% 32% 3% 38%
3.8 Substrate VM #6 6.13 1,995,436 752 7.21 0% 2% 82% 36%
3.9 C++ g++ #6 6.21 1,572,296 1832 8.63 31% 18% 23% 69%
3.9 C# .NET Core #2 6.27 2,750,416 1674 9.31 54% 58% 23% 38%
4.1 C# .NET Core 6.66 1,031,692 1109 6.67 1% 73% 27% 1%
4.3 Java #5 6.91 1,120,052 1108 7.22 97% 3% 2% 5%
4.7 C gcc #4 7.61 500,388 709 7.60 100% 0% 0% 1%
5.1 Free Pascal #2 8.18 520,456 771 8.17 1% 100% 0% 0%
6.0 Java #4 9.64 1,918,296 651 9.89 2% 4% 98% 1%
6.4 Perl #3 10.33 1,494,316 287 10.32 0% 0% 1% 100%
6.6 Substrate VM #5 10.57 793,728 1108 10.55 0% 0% 0% 100%
6.9 C++ g++ 11.11 979,880 592 11.09 100% 1% 1% 0%
7.3 Substrate VM #4 11.75 1,183,508 651 11.74 100% 0% 1% 0%
7.8 PHP #3 12.54 ? 438 ? 59% 6% 61% 28%
9.6 PHP 15.48 1,475,744 312 15.46 1% 1% 100% 1%
10 Python 3 #6 16.03 1,007,016 814 19.29 18% 59% 44% 23%
10 Node js #7 16.41 709,792 1103 17.86 34% 8% 38% 29%
10 TypeScript 16.83 708,268 1141 18.35 25% 24% 6% 55%
11 Racket #2 17.43 662,492 1030 17.43 100% 2% 1% 0%
11 PHP #2 18.11 1,776,920 274 18.08 100% 1% 1% 0%
11 Ada 2012 GNAT 18.22 517,996 937 18.21 100% 2% 2% 1%
14 C# .NET Core #3 22.72 1,565,388 915 31.62 48% 32% 38% 23%
14 Ruby #5 23.09 1,604,952 295 40.79 59% 45% 35% 40%
15 Node js #2 23.51 718,072 1221 24.98 39% 14% 36% 19%
15 Haskell GHC #2 24.45 ? 982 ? 27% 25% 50% 17%
20 Ruby #4 32.39 2,002,740 622 74.39 52% 77% 63% 60%
21 Ruby #2 34.43 504,660 264 67.43 51% 42% 26% 78%
24 Matz's Ruby #2 38.95 492,568 264 38.92 60% 100% 22% 72%
26 Java #7 41.28 ? 1647 ? 43% 31% 42% 34%
29 C++ g++ #5 46.22 692,180 720 46.21 0% 100% 0% 1%
35 Racket 56.28 1,736,780 553 56.26 0% 79% 21% 0%
38 Erlang HiPE 61.76 2,006,232 1302 130.49 69% 62% 58% 51%
39 Fortran Intel #2 63.42 760,508 772 63.39 0% 1% 1% 100%
48 Julia #2 76.74 1,597,652 460 76.97 0% 1% 35% 65%
48 Lua #2 76.95 2,932,820 553 74.20 1% 41% 60% 1%
49 Lua #5 77.96 2,141,832 752 77.07 4% 1% 1% 96%
55 Ruby #3 87.74 1,505,292 537 85.90 61% 67% 64% 64%
57 Lua #4 91.52 1,408,380 594 91.47 1% 0% 1% 100%
67 Matz's Ruby #3 107.69 ? 517 ? 35% 53% 36% 38%
117 Erlang HiPE #4 187.93 1,510,916 1171 252.67 52% 26% 29% 48%
123 Python 3 #4 197.86 ? 335 ? 36% 50% 46% 31%
139 JRuby #2 222.81 2,907,908 264 227.22 4% 48% 54% 3%
140 F# .NET Core 224.84 2,702,896 595 228.29 29% 20% 50% 14%
195 Erlang HiPE #3 5 min 3,576,532 630 5 min 34% 24% 20% 46%
199 Truffle Ruby #2 5 min 3,378,584 264 6 min 59% 43% 53% 42%
266 Truffle Ruby #7 7 min ? 264 ? 51% 44% 36% 37%
Dart #3 Failed
Dart #2 Failed
Dart app-jit #2 Failed
Dart app-jit #3 Failed
F# .NET Core #2 Failed
Go Failed
Substrate VM #7 Bad Output
Julia Bad Output
Lisp SBCL Timed Out
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Ruby Failed
Matz's Ruby #5 Failed
Matz's Ruby Failed
Matz's Ruby #4 Failed
JRuby #3 Failed
JRuby Failed
Truffle Ruby Failed
Truffle Ruby #4 Failed
Truffle Ruby #3 Failed
Truffle Ruby #5 Bad Output
VW Smalltalk Bad Output