The Computer Language
Benchmarks Game

regex-redux

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Node.js #2 4.02 507,480 452 4.02 0% 1% 100% 0%
1.0 Node.js 4.03 555,184 432 4.03 100% 1% 1% 1%
1.0 TypeScript #3 4.20 650,072 610 4.20 1% 100% 2% 1%
1.1 TypeScript #2 4.28 475,416 440 4.29 1% 1% 100% 1%
1.1 TypeScript 4.27 484,440 440 4.30 3% 1% 100% 1%
1.1 C gcc #3 2.86 106,260 1266 4.47 19% 18% 100% 21%
1.1 C gcc #2 4.48 105,916 1115 4.47 100% 2% 0% 0%
1.6 Rust 3.28 222,916 804 6.46 33% 100% 32% 35%
1.6 Rust #2 3.33 207,132 701 6.53 88% 33% 33% 45%
2.0 Pascal Free Pascal 8.06 102,456 1234 8.05 0% 1% 100% 0%
2.4 C++ g++ 9.79 202,324 656 9.78 1% 0% 0% 100%
2.4 C++ g++ #2 6.75 183,256 700 9.80 100% 39% 8% 0%
5.2 Chapel 10.58 1,138,908 477 20.89 100% 14% 14% 73%
6.2 C++ g++ #3 16.34 218,684 853 24.91 1% 71% 25% 58%
7.0 Python 3 14.87 433,868 486 28.02 32% 45% 84% 29%
7.1 Ruby #2 28.80 309,760 424 28.77 15% 48% 20% 19%
8.4 Scala 31.04 800,156 620 33.85 88% 7% 10% 6%
8.7 Java  18.17 835,688 868 34.87 37% 73% 52% 33%
9.3 Java #3 12.16 927,212 929 37.28 73% 81% 75% 78%
9.4 Ruby #9 37.89 260,460 315 37.87 1% 0% 100% 1%
11 Clojure #3 25.10 933,524 719 45.68 55% 58% 24% 47%
13 Racket 50.77 1,000,916 536 50.76 100% 1% 1% 1%
13 Lisp SBCL #3 28.64 767,024 1961 52.91 69% 32% 50% 36%
16 Go #2 29.76 353,332 798 62.56 50% 67% 53% 41%
17 Ruby JRuby #2 29.48 1,554,812 424 66.90 59% 68% 50% 52%
24 Swift 97.48 694,832 671 97.43 1% 100% 0% 1%
26 C# .NET Core 104.83 923,356 635 105.19 9% 1% 1% 91%
26 C# .NET Core #4 31.11 1,230,080 856 106.12 90% 87% 92% 74%
26 F# .NET Core #2 105.80 1,028,144 426 106.18 1% 100% 1% 1%
31 Go 53.47 322,512 737 125.82 70% 55% 65% 46%
C gcc Bad Output
Clojure #4 Bad Output
Dart #2 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 Bad Output
Hack Partial
Hack #4 Bad Output
Java #2 Bad Output
Java #4 Bad Output
Java #5 Bad Output
Lua #2 Bad Output
OCaml #2 Bad Output
OCaml #4 Bad Output
PHP #4 Bad Output
PHP Partial
Ruby #6 Bad Output
Ruby #8 Bad Output