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.50 152,088 1230 4.06 54% 59% 60% 100%
1.1 C++ g++ #4 1.66 203,568 1315 4.23 48% 53% 57% 99%
1.6 C gcc #3 2.38 103,480 1266 4.17 31% 22% 23% 100%
1.7 Rust #4 2.54 202,448 765 3.97 64% 20% 57% 18%
1.7 Rust #3 2.60 221,276 719 4.00 84% 20% 15% 38%
1.8 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%
1.8 Rust 2.70 150,024 804 3.92 19% 17% 87% 29%
1.9 Rust #2 2.78 194,764 701 3.99 85% 15% 14% 31%
2.5 Hack 3.72 283,068 822 3.46 31% 37% 78% 30%
2.6 Free Pascal #2 3.81 102,432 1503 5.24 19% 90% 15% 14%
2.8 C gcc #2 4.13 103,012 1115 4.12 100% 1% 1% 0%
3.9 C++ g++ #2 5.84 184,656 700 8.65 39% 61% 34% 16%
4.5 Ada 2012 GNAT #5 6.80 154,280 3640 19.53 71% 63% 84% 70%
4.6 C++ g++ #5 6.85 212,648 852 9.27 12% 89% 24% 12%
5.2 Free Pascal 7.80 99,480 1273 7.79 0% 0% 1% 100%
5.4 Chapel 8.13 642,972 477 15.64 100% 13% 14% 70%
5.8 C++ g++ 8.71 200,748 656 8.70 0% 100% 2% 0%
5.9 Dart #3 8.80 992,044 1041 15.25 34% 34% 36% 70%
7.0 Java  #3 10.43 609,920 929 31.73 72% 78% 72% 83%
7.0 Java #6 10.48 529,012 740 31.95 77% 76% 69% 84%
7.7 TypeScript 11.47 659,204 440 12.42 48% 32% 9% 20%
7.8 TypeScript #3 11.72 850,632 610 12.53 33% 17% 37% 22%
7.9 Node js 11.85 884,848 408 12.70 71% 23% 12% 3%
8.1 TypeScript #2 12.04 649,460 440 12.98 18% 11% 68% 12%
8.1 Node js #2 12.10 650,628 432 13.05 40% 18% 30% 22%
8.6 Dart #2 12.79 533,936 677 15.07 80% 14% 21% 4%
9.4 Ruby #3 14.10 268,288 751 19.01 66% 54% 91% 72%
9.5 F# .NET Core #6 14.14 1,504,112 611 46.71 80% 73% 80% 97%
9.8 Perl #4 14.66 155,708 820 43.59 63% 86% 53% 96%
9.8 C# .NET Core #5 14.72 1,638,768 673 48.67 79% 79% 98% 76%
10 Perl #3 14.98 156,260 854 44.29 60% 89% 51% 96%
10 F# .NET Core #5 15.47 1,509,740 529 46.95 91% 71% 74% 67%
10 Python 3 15.56 439,964 512 27.97 25% 92% 32% 32%
11 Java 16.58 606,424 868 31.42 33% 77% 38% 43%
17 OCaml #2 25.19 968,920 637 25.16 73% 0% 0% 28%
17 Perl #2 25.38 203,776 710 43.31 95% 1% 71% 5%
19 Ruby #2 28.11 359,124 431 56.77 66% 58% 44% 35%
19 Java AOT 28.19 1,248,228 868 45.43 21% 21% 21% 100%
19 Go #2 28.43 353,880 802 59.89 49% 44% 69% 49%
20 Go #4 29.68 376,368 829 71.27 55% 59% 67% 60%
20 C# .NET Core #9 30.28 1,495,896 659 105.90 87% 84% 90% 90%
20 JRuby #2 30.60 1,356,968 431 67.13 43% 41% 49% 88%
21 C# .NET Core #4 30.69 1,574,304 856 105.51 89% 90% 78% 88%
23 Perl 34.29 204,320 464 34.28 0% 0% 0% 100%
24 Ruby #9 35.85 314,540 335 72.44 77% 76% 26% 26%
31 C# .NET Core 45.87 1,228,996 635 46.13 5% 3% 9% 86%
31 F# .NET Core #2 46.67 1,433,524 426 46.92 76% 5% 9% 11%
35 Go 51.83 322,344 741 120.97 48% 72% 51% 65%
35 Go #3 52.93 660,388 829 136.77 89% 63% 58% 54%
36 Racket 54.09 1,006,828 541 54.09 90% 0% 0% 11%
91 Truffle Ruby #2 135.85 1,807,812 431 216.30 63% 24% 22% 50%
92 Truffle Ruby #3 136.93 1,687,828 751 222.30 43% 38% 38% 44%
107 Truffle Ruby #9 159.82 1,583,088 335 220.05 60% 24% 23% 32%
Ada 2012 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
C++ g++ #3 Make Error
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 Make Error
Hack #4 Bad Output
Java #4 Bad Output
Java #5 Bad Output
Java #2 Bad Output
Java AOT #2 Bad Output
Java AOT #6 Make Error
Java AOT #3 Make Error
Java AOT #5 Bad Output
Java AOT #4 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 Ruby #2 Bad Output
Matz's Ruby #6 Failed
Matz's Ruby #9 Bad Output
Matz's Ruby #8 Failed
Matz's Ruby #3 Bad Output
Truffle Ruby #8 Failed
Truffle Ruby #6 Bad Output
Swift #3 Failed
Swift #2 Failed
Swift Failed