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 3.02 189,036 804 4.40 87% 15% 17% 29%
2.1 Rust #2 3.12 149,140 701 4.48 29% 15% 17% 86%
2.3 Hack 3.44 238,608 815 3.18 34% 31% 44% 73%
2.6 Free Pascal #2 3.81 102,432 1503 5.24 19% 90% 15% 14%
2.8 C gcc #2 4.12 103,028 1115 4.12 100% 0% 0% 1%
2.8 TypeScript #3 4.20 567,744 610 4.24 59% 2% 1% 41%
2.9 Node js #2 4.22 596,420 432 4.24 100% 0% 0% 1%
2.9 Node js 4.30 652,092 408 4.30 0% 2% 99% 0%
2.9 TypeScript #2 4.30 683,748 440 4.30 37% 1% 44% 20%
2.9 TypeScript 4.31 683,648 440 4.31 7% 2% 5% 89%
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 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.1 Java  #3 10.51 573,972 929 31.30 70% 73% 70% 86%
7.3 Java #6 10.84 603,452 740 30.58 69% 64% 87% 64%
8.8 Ruby #3 13.04 ? 727 ? 41% 92% 47% 39%
10 Perl #4 14.66 155,708 820 43.59 63% 86% 53% 96%
10 Dart #3 14.78 673,392 1050 31.04 45% 58% 59% 51%
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.27 608,804 868 29.20 28% 77% 37% 38%
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%
17 Ruby #2 25.64 311,964 431 25.63 6% 4% 60% 31%
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 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 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%
37 Go 53.89 322,376 741 129.05 70% 66% 50% 54%
37 Racket 54.09 1,006,828 541 54.09 90% 0% 0% 11%
37 Go #3 54.31 679,144 829 133.72 49% 74% 75% 49%
51 Swift 75.54 897,668 715 141.08 74% 29% 67% 21%
64 Swift #2 94.96 691,900 671 94.91 69% 32% 0% 0%
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%
96 Truffle Ruby #2 142.20 1,167,320 431 238.77 52% 46% 36% 34%
111 Truffle Ruby #9 164.16 915,040 322 236.63 24% 23% 60% 38%
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 Make Error
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 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 #3 Failed
Truffle Ruby #8 Failed
Truffle Ruby #6 Bad Output
Rust #3 Make Error
Swift #3 Bad Output