The Computer Language
Benchmarks Game

regex-redux

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C gcc #4 1.48 152,352 1230 4.05 59% 99% 57% 61%
1.1 C++ g++ #4 1.61 203,572 1315 4.18 100% 52% 57% 54%
1.6 C gcc #3 2.37 103,436 1266 4.16 100% 24% 32% 23%
1.8 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%
2.0 Rust 2.99 192,244 804 4.36 31% 16% 85% 16%
2.0 Rust #2 3.01 178,968 701 4.37 15% 17% 30% 85%
2.3 Hack 3.44 238,608 815 3.18 34% 31% 44% 73%
2.6 Pascal Free Pascal #2 3.81 102,432 1503 5.24 19% 90% 15% 14%
2.8 TypeScript #3 4.11 567,076 766 4.13 57% 43% 6% 0%
2.8 C gcc #2 4.12 103,028 1115 4.12 100% 0% 0% 1%
2.9 Node.js #2 4.23 594,916 432 4.25 78% 1% 0% 24%
2.9 TypeScript 4.30 655,840 571 4.30 1% 2% 100% 0%
2.9 TypeScript #2 4.30 652,024 575 4.31 1% 99% 1% 0%
2.9 Node.js 4.30 653,416 408 4.30 1% 1% 99% 1%
3.9 C++ g++ #2 5.75 201,072 700 8.50 1% 84% 1% 63%
4.5 C++ g++ #5 6.64 215,380 852 9.03 88% 24% 13% 12%
4.5 Ada 2005 GNAT #5 6.70 154,440 3640 19.34 68% 92% 63% 66%
5.3 Pascal Free Pascal 7.80 99,480 1273 7.79 0% 0% 1% 100%
5.5 Chapel 8.16 792,460 477 16.36 100% 17% 16% 70%
5.7 C++ g++ 8.44 182,500 656 8.44 1% 100% 0% 0%
7.0 Java  #3 10.34 627,224 929 29.88 74% 72% 65% 79%
10 Perl #4 14.66 155,708 820 43.59 63% 86% 53% 96%
10 Perl #3 14.98 156,260 854 44.29 60% 89% 51% 96%
10 Python 3 15.22 447,324 512 27.44 25% 33% 32% 91%
11 Java 16.96 627,352 868 31.56 46% 63% 43% 34%
12 C++ g++ #3 17.33 215,384 853 25.78 13% 94% 43% 1%
17 OCaml #2 24.66 968,800 637 24.64 1% 1% 0% 100%
17 Perl #2 25.38 203,776 710 43.31 95% 1% 71% 5%
19 Go #2 28.49 318,144 802 59.96 74% 48% 41% 48%
20 Ruby #2 28.80 309,760 424 28.77 15% 48% 20% 19%
20 Dart #2 30.08 454,592 685 32.24 10% 5% 81% 13%
21 C# .NET Core #9 30.74 1,483,936 659 110.24 92% 89% 90% 88%
21 C# .NET Core #5 30.74 1,509,340 673 110.16 83% 92% 93% 92%
21 F# .NET Core #5 31.02 1,446,740 529 111.00 92% 89% 85% 91%
21 F# .NET Core #6 31.49 1,670,792 611 111.71 90% 87% 97% 81%
22 C# .NET Core #4 32.22 1,607,784 856 110.70 77% 94% 92% 80%
23 Perl 34.29 204,320 464 34.28 0% 0% 0% 100%
23 Ruby JRuby #2 34.34 1,275,904 424 82.77 51% 48% 69% 75%
26 Ruby #9 37.89 260,460 315 37.87 1% 0% 100% 1%
34 Racket 50.50 1,013,084 536 50.50 1% 0% 50% 51%
37 Go #3 54.09 688,052 829 132.55 52% 66% 50% 79%
37 Go 54.32 322,704 741 127.08 73% 65% 52% 45%
50 Swift 74.22 898,456 715 137.84 2% 86% 100% 3%
63 Swift #2 93.00 692,504 671 92.96 100% 1% 0% 1%
75 C# .NET Core 110.06 1,331,724 635 110.31 0% 43% 58% 0%
75 F# .NET Core #2 110.23 1,422,104 426 110.49 85% 0% 1% 15%
Ada 2005 GNAT #6 Bad Output
C# .NET Core #6 Bad Output
C# .NET Core #8 Bad Output
C# .NET Core #2 Bad Output
C# .NET Core #7 Bad Output
C# .NET Core #3 Bad Output
Erlang HiPE #6 Bad Output
F# .NET Core #4 Bad Output
F# .NET Core #3 Bad Output
F# .NET Core Bad Output
Haskell GHC #2 Bad Output
Hack #4 Bad Output
Java #4 Bad Output
Java #5 Bad Output
Java #2 Bad Output
Lisp SBCL #3 Failed
Lua #2 Bad Output
OCaml #4 Make Error
PHP #4 Bad Output
Ruby #8 Bad Output
Ruby #6 Bad Output
Matz's Interpreter #2 Bad Output
Matz's Interpreter #6 Failed
Matz's Interpreter #9 Bad Output
Matz's Interpreter #8 Failed
Swift #3 Bad Output