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.8 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%
2.0 Rust 3.01 180,660 804 4.41 16% 16% 16% 100%
2.1 Rust #2 3.16 148,464 701 4.51 14% 86% 29% 16%
2.4 Hack 3.65 266,948 815 3.41 73% 28% 30% 46%
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 2005 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 Dart #3 8.10 791,508 1050 12.57 18% 88% 27% 24%
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%
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.4 TypeScript 10.99 649,968 440 11.81 15% 7% 23% 64%
7.4 TypeScript #2 11.04 683,348 440 11.87 44% 18% 5% 41%
7.5 Node js 11.18 847,584 408 11.90 11% 9% 76% 12%
7.6 TypeScript #3 11.43 844,952 610 12.23 3% 64% 16% 25%
8.0 Node js #2 11.96 664,332 432 12.87 36% 47% 8% 19%
8.1 Dart #2 12.08 446,080 685 13.90 14% 57% 34% 11%
8.8 Ruby #3 13.14 ? 751 ? 90% 41% 41% 47%
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%
10 C# .NET Core #5 14.89 1,555,668 673 48.95 78% 76% 78% 99%
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%
10 F# .NET Core #5 15.47 1,509,740 529 46.95 91% 71% 74% 67%
11 Java 16.58 606,424 868 31.42 33% 77% 38% 43%
16 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%
17 Ruby #2 25.64 311,964 431 25.63 6% 4% 60% 31%
19 Java AOT 28.19 1,248,228 868 45.43 21% 21% 21% 100%
19 Go #2 28.21 323,820 802 59.87 69% 46% 50% 48%
19 JRuby #2 28.52 1,375,512 431 63.99 74% 60% 41% 51%
20 Go #4 29.81 383,640 829 71.27 82% 52% 54% 52%
20 C# .NET Core #4 30.16 1,617,516 856 103.18 91% 79% 90% 84%
21 C# .NET Core #9 31.61 1,566,800 659 102.74 82% 91% 76% 78%
23 Ruby #9 34.26 312,324 322 34.24 0% 0% 100% 0%
23 Perl 34.29 204,320 464 34.28 0% 0% 0% 100%
31 C# .NET Core 46.28 1,238,724 635 46.52 2% 8% 17% 75%
31 F# .NET Core #2 46.67 1,433,524 426 46.92 76% 5% 9% 11%
36 Go 53.89 322,376 741 129.05 70% 66% 50% 54%
36 Racket 54.09 1,006,828 541 54.09 90% 0% 0% 11%
36 Go #3 54.31 679,144 829 133.72 49% 74% 75% 49%
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 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
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
Rust #3 Bad Output
Swift #3 Failed
Swift #2 Failed
Swift Failed