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 #5 1.45 152,208 1397 3.40 46% 49% 42% 100%
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 204,160 765 3.95 55% 30% 56% 18%
1.8 Rust #3 2.55 248,224 719 3.97 18% 20% 20% 99%
1.8 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%
1.8 Rust 2.65 150,872 804 3.91 16% 17% 86% 31%
1.9 Rust #2 2.72 184,060 701 3.95 17% 16% 84% 31%
2.5 Hack 3.68 281,608 822 3.43 29% 73% 44% 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%
4.0 C++ g++ #2 5.84 184,656 700 8.65 39% 61% 34% 16%
4.7 Ada 2012 GNAT #5 6.80 154,280 3640 19.53 71% 63% 84% 70%
4.7 C++ g++ #5 6.85 212,648 852 9.27 12% 89% 24% 12%
5.4 Free Pascal 7.80 99,480 1273 7.79 0% 0% 1% 100%
5.8 Chapel 8.47 622,528 477 16.65 99% 15% 15% 70%
6.0 C++ g++ 8.71 200,748 656 8.70 0% 100% 2% 0%
6.1 Dart #3 8.80 992,044 1041 15.25 34% 34% 36% 70%
7.2 Java  #3 10.52 637,380 929 31.89 75% 80% 77% 72%
7.9 TypeScript 11.47 659,204 440 12.42 48% 32% 9% 20%
8.0 Java #6 11.62 599,632 740 33.20 85% 61% 78% 63%
8.1 TypeScript #3 11.72 850,632 610 12.53 33% 17% 37% 22%
8.1 Node js 11.85 884,848 408 12.70 71% 23% 12% 3%
8.3 TypeScript #2 12.04 649,460 440 12.98 18% 11% 68% 12%
8.3 Node js #2 12.10 650,628 432 13.05 40% 18% 30% 22%
8.8 Dart #2 12.79 533,936 677 15.07 80% 14% 21% 4%
9.7 F# .NET Core #6 14.06 1,510,900 611 46.47 81% 77% 92% 81%
9.7 Ruby #3 14.10 268,288 751 19.01 66% 54% 91% 72%
10 Perl #4 14.66 155,708 820 43.59 63% 86% 53% 96%
10 C# .NET Core #5 14.90 1,492,752 673 48.69 83% 79% 73% 93%
10 Perl #3 14.98 156,260 854 44.29 60% 89% 51% 96%
10 F# .NET Core #5 15.22 1,588,436 529 46.34 93% 70% 81% 61%
11 Python 3 15.56 439,964 512 27.97 25% 92% 32% 32%
12 Java 16.73 600,044 868 30.92 42% 36% 78% 30%
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%
20 Go #2 28.69 407,444 802 60.43 46% 51% 68% 46%
21 C# .NET Core #9 30.05 1,535,664 659 105.67 97% 84% 82% 90%
21 Go #4 30.24 407,552 829 71.74 46% 60% 71% 61%
21 JRuby #2 30.60 1,356,968 431 67.13 43% 41% 49% 88%
21 C# .NET Core #4 30.82 1,746,724 856 105.23 80% 75% 90% 98%
24 Perl 34.29 204,320 464 34.28 0% 0% 0% 100%
25 Ruby #9 35.85 314,540 335 72.44 77% 76% 26% 26%
32 C# .NET Core 45.91 1,194,152 635 46.17 1% 3% 4% 94%
32 F# .NET Core #2 46.34 1,434,192 426 46.63 85% 3% 0% 14%
37 Go #3 53.31 402,104 829 129.81 72% 68% 50% 54%
37 Racket 54.09 1,006,828 541 54.09 90% 0% 0% 11%
38 Go 54.91 331,148 741 134.05 65% 57% 61% 61%
50 Swift 73.35 883,632 715 140.42 56% 38% 61% 42%
68 Swift #2 98.57 692,576 671 98.53 1% 0% 100% 0%
93 Truffle Ruby #2 135.85 1,807,812 431 216.30 63% 24% 22% 50%
94 Truffle Ruby #3 136.93 1,687,828 751 222.30 43% 38% 38% 44%
110 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 Bad Output