The Computer Language
Benchmarks Game

regex-redux

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Ruby #9 37.89 260,460 315 37.87 1% 0% 100% 1%
1.3 Ruby #2 28.80 309,760 424 28.77 15% 48% 20% 19%
1.3 Ruby JRuby #2 29.48 1,554,812 424 66.90 59% 68% 50% 52%
1.4 Node.js 4.20 521,132 432 4.21 100% 1% 1% 1%
1.4 TypeScript #2 4.19 438,588 440 4.21 1% 1% 100% 1%
1.4 TypeScript 4.19 438,632 440 4.22 100% 1% 2% 0%
1.4 Node.js #2 4.15 448,996 452 4.15 42% 58% 1% 0%
1.4 Perl 34.01 206,564 454 34.00 0% 0% 0% 100%
1.5 Chapel 10.02 1,022,052 477 19.68 99% 72% 14% 12%
1.5 Python 3 14.86 439,208 486 27.92 46% 77% 35% 31%
1.7 Racket 52.80 1,005,744 536 52.78 0% 100% 1% 0%
1.9 TypeScript #3 4.10 595,456 610 4.12 0% 2% 99% 1%
2.0 OCaml #2 25.09 968,516 622 25.06 1% 54% 0% 46%
2.0 C# .NET Core 103.34 1,369,016 635 103.55 1% 0% 38% 62%
2.1 Dart #2 31.14 469,064 656 33.15 6% 57% 1% 44%
2.1 Swift #2 104.62 695,700 671 104.56 100% 2% 1% 0%
2.2 Perl #2 24.95 205,992 699 42.12 100% 69% 1% 0%
2.2 Rust #2 2.85 175,380 701 4.27 18% 19% 17% 100%
2.3 Go 53.83 322,420 737 125.41 55% 54% 67% 59%
2.5 Hack 3.92 271,128 786 3.83 30% 24% 76% 27%
2.5 PHP 3.34 158,792 786 3.30 25% 26% 22% 92%
2.5 Go #2 29.51 352,804 798 61.51 77% 49% 43% 40%
2.6 Rust 2.83 179,428 804 4.22 88% 17% 17% 29%
2.6 Perl #4 14.13 156,872 804 43.42 72% 89% 52% 95%
2.7 Perl #3 14.47 158,244 839 43.19 95% 74% 67% 63%
2.7 C++ g++ #3 17.14 220,088 853 25.22 95% 3% 51% 1%
2.7 C# .NET Core #4 30.01 1,634,216 856 104.34 88% 78% 92% 91%
2.8 Java  18.03 834,824 868 34.89 48% 63% 45% 39%
2.9 Java #3 12.31 902,528 929 38.75 73% 76% 86% 81%
3.5 C gcc #2 4.14 106,152 1115 4.14 1% 100% 0% 1%
3.9 C gcc #4 1.45 155,768 1230 4.03 61% 64% 56% 100%
3.9 Pascal Free Pascal 7.61 99,440 1234 7.60 0% 100% 1% 0%
4.0 C gcc #3 2.39 105,944 1266 4.17 100% 31% 23% 24%
4.6 Pascal Free Pascal #2 3.75 99,488 1459 5.15 20% 16% 14% 90%
6.2 Lisp SBCL #3 28.66 768,704 1961 53.39 35% 38% 73% 43%
11 Ada 2005 GNAT #5 8.70 163,000 3618 25.50 86% 78% 69% 60%
Ada 2005 GNAT #6 Bad Output
C# .NET Core #2 Bad Output
C# .NET Core #3 Bad Output
C# .NET Core #8 Bad Output
C# .NET Core #6 Bad Output
C# .NET Core #7 Bad Output
C++ g++ #5 Failed
C++ g++ #2 Failed
C++ g++ Failed
Erlang #6 Bad Output
Erlang HiPE #6 Bad Output
F# .NET Core #4 Failed
F# .NET Core #2 Failed
F# .NET Core #3 Failed
F# .NET Core #5 Failed
F# .NET Core Failed
Go #9 Bad Output
Haskell GHC #2 Bad Output
Hack #4 Bad Output
Java #2 Bad Output
Java #4 Bad Output
Java #5 Bad Output
Lua #2 Bad Output
OCaml #4 Bad Output
PHP #4 Bad Output
Ruby #6 Bad Output
Ruby #8 Bad Output
Swift #3 Bad Output