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 F# .NET Core #2 105.80 1,028,144 426 106.18 1% 100% 1% 1%
1.4 Node.js 4.03 555,184 432 4.03 100% 1% 1% 1%
1.4 TypeScript 4.27 484,440 440 4.30 3% 1% 100% 1%
1.4 TypeScript #2 4.28 475,416 440 4.29 1% 1% 100% 1%
1.4 Node.js #2 4.02 507,480 452 4.02 0% 1% 100% 0%
1.5 Chapel 10.58 1,138,908 477 20.89 100% 14% 14% 73%
1.5 Python 3 14.87 433,868 486 28.02 32% 45% 84% 29%
1.7 Racket 50.77 1,000,916 536 50.76 100% 1% 1% 1%
1.9 TypeScript #3 4.20 650,072 610 4.20 1% 100% 2% 1%
2.0 Scala 31.04 800,156 620 33.85 88% 7% 10% 6%
2.0 C# .NET Core 104.83 923,356 635 105.19 9% 1% 1% 91%
2.1 C++ g++ 9.79 202,324 656 9.78 1% 0% 0% 100%
2.1 Swift 97.48 694,832 671 97.43 1% 100% 0% 1%
2.2 C++ g++ #2 6.75 183,256 700 9.80 100% 39% 8% 0%
2.2 Rust #2 3.33 207,132 701 6.53 88% 33% 33% 45%
2.3 Clojure #3 25.10 933,524 719 45.68 55% 58% 24% 47%
2.3 Go 53.47 322,512 737 125.82 70% 55% 65% 46%
2.5 PHP 3.37 ? 786 ? 20% 93% 24% 27%
2.5 Hack 3.92 ? 786 ? 30% 24% 76% 27%
2.5 Go #2 29.76 353,332 798 62.56 50% 67% 53% 41%
2.6 Rust 3.28 222,916 804 6.46 33% 100% 32% 35%
2.7 C++ g++ #3 16.34 218,684 853 24.91 1% 71% 25% 58%
2.7 C# .NET Core #4 31.11 1,230,080 856 106.12 90% 87% 92% 74%
2.8 Java  18.17 835,688 868 34.87 37% 73% 52% 33%
2.9 Java #3 12.16 927,212 929 37.28 73% 81% 75% 78%
3.5 C gcc #2 4.48 105,916 1115 4.47 100% 2% 0% 0%
3.9 Pascal Free Pascal 8.06 102,456 1234 8.05 0% 1% 100% 0%
4.0 C gcc #3 2.86 106,260 1266 4.47 19% 18% 100% 21%
6.2 Lisp SBCL #3 28.64 767,024 1961 52.91 69% 32% 50% 36%
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 #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
Ruby #6 Bad Output
Ruby #8 Bad Output