The Computer Language
Benchmarks Game

regex-redux

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Pascal Free Pascal 7.61 99,440 1234 7.60 0% 100% 1% 0%
1.0 Pascal Free Pascal #2 3.75 99,488 1459 5.15 20% 16% 14% 90%
1.1 C gcc #3 2.39 105,944 1266 4.17 100% 31% 23% 24%
1.1 C gcc #2 4.14 106,152 1115 4.14 1% 100% 0% 1%
1.6 C gcc #4 1.45 155,768 1230 4.03 61% 64% 56% 100%
1.6 Perl #4 14.13 156,872 804 43.42 72% 89% 52% 95%
1.6 Perl #3 14.47 158,244 839 43.19 95% 74% 67% 63%
1.6 PHP 3.34 158,792 786 3.30 25% 26% 22% 92%
1.6 Ada 2005 GNAT #5 8.70 163,000 3618 25.50 86% 78% 69% 60%
2.1 Perl #2 24.95 205,992 699 42.12 100% 69% 1% 0%
2.1 Perl 34.01 206,564 454 34.00 0% 0% 0% 100%
2.1 Rust #2 3.33 207,132 701 6.53 88% 33% 33% 45%
2.2 C++ g++ #3 17.14 220,088 853 25.22 95% 3% 51% 1%
2.2 Rust 3.28 222,916 804 6.46 33% 100% 32% 35%
2.6 Ruby #9 37.89 260,460 315 37.87 1% 0% 100% 1%
2.7 Hack 3.92 271,128 786 3.83 30% 24% 76% 27%
3.1 Ruby #2 28.80 309,760 424 28.77 15% 48% 20% 19%
3.2 Go 53.83 322,420 737 125.41 55% 54% 67% 59%
3.5 Go #2 29.51 352,804 798 61.51 77% 49% 43% 40%
4.4 TypeScript #2 4.19 438,588 440 4.21 1% 1% 100% 1%
4.4 TypeScript 4.19 438,632 440 4.22 100% 1% 2% 0%
4.4 Python 3 14.86 439,208 486 27.92 46% 77% 35% 31%
4.5 Node.js #2 4.15 448,996 452 4.15 42% 58% 1% 0%
4.7 Dart #2 31.14 469,064 656 33.15 6% 57% 1% 44%
5.2 Node.js 4.20 521,132 432 4.21 100% 1% 1% 1%
6.0 TypeScript #3 4.10 595,456 610 4.12 0% 2% 99% 1%
7.0 Swift #2 101.01 695,648 671 100.95 84% 17% 1% 0%
7.7 Lisp SBCL #3 28.66 768,704 1961 53.39 35% 38% 73% 43%
8.4 Java  18.03 834,824 868 34.89 48% 63% 45% 39%
9.1 Java #3 12.31 902,528 929 38.75 73% 76% 86% 81%
9.7 OCaml #2 25.09 968,516 622 25.06 1% 54% 0% 46%
10 Racket 52.80 1,005,744 536 52.78 0% 100% 1% 0%
10 Chapel 10.02 1,022,052 477 19.68 99% 72% 14% 12%
11 F# .NET Core #2 105.62 1,090,956 426 106.05 38% 3% 2% 60%
13 C# .NET Core 104.91 1,312,900 635 105.17 60% 0% 1% 40%
14 C# .NET Core #4 30.79 1,401,756 856 106.34 92% 82% 80% 93%
16 Ruby JRuby #2 29.48 1,554,812 424 66.90 59% 68% 50% 52%
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 Bad Output
F# .NET Core #3 Bad Output
F# .NET Core Bad Output
Go #9 Bad Output
Haskell GHC #2 Make Error
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