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.46 152,216 1397 3.40 45% 41% 100% 49%
1.0 C gcc #4 1.49 152,124 1230 4.05 100% 59% 60% 54%
1.3 C++ g++ #4 1.83 203,520 1315 4.41 50% 45% 100% 49%
1.6 C gcc #3 2.40 103,456 1266 4.18 23% 100% 32% 22%
1.7 Rust #4 2.44 205,624 765 3.86 11% 91% 0% 59%
1.7 Rust #3 2.50 248,016 719 3.87 18% 19% 99% 20%
1.8 Rust 2.58 149,628 804 3.82 16% 87% 17% 28%
1.8 PHP 2.61 270,552 816 2.44 79% 40% 40% 42%
1.8 Rust #2 2.65 198,860 701 3.86 16% 18% 31% 85%
2.6 Free Pascal #2 3.87 103,288 1503 5.28 16% 13% 19% 90%
2.8 C gcc #2 4.14 103,064 1115 4.14 100% 1% 2% 0%
4.0 Julia 5.88 349,980 541 6.16 2% 3% 100% 2%
4.4 C++ g++ #2 6.40 184,560 700 9.51 84% 65% 1% 1%
4.5 Ada 2012 GNAT #5 6.62 154,208 3640 19.23 69% 75% 69% 81%
4.8 C++ g++ #5 6.99 214,192 852 9.77 14% 15% 15% 100%
5.5 Free Pascal 7.98 100,596 1273 7.97 1% 100% 0% 1%
5.6 Dart app-jit #3 8.21 870,916 1041 12.38 19% 21% 92% 20%
5.8 Dart #3 8.47 976,664 1041 14.15 90% 22% 30% 26%
5.9 Chapel 8.58 628,300 477 16.85 99% 14% 15% 70%
6.5 C++ g++ 9.53 197,196 656 9.52 1% 1% 100% 0%
7.2 Java  #3 10.50 571,736 929 31.63 71% 73% 66% 92%
7.4 Java #6 10.80 567,224 740 33.19 90% 73% 69% 77%
7.9 TypeScript 11.59 669,264 440 12.43 24% 20% 53% 12%
8.2 TypeScript #3 11.91 878,600 610 12.72 21% 23% 45% 19%
8.2 Dart app-jit #2 11.92 507,180 677 13.47 8% 77% 20% 10%
8.2 Node js 11.98 849,192 408 12.82 17% 37% 3% 52%
8.3 Dart #2 12.18 515,636 677 14.11 14% 77% 20% 6%
8.4 TypeScript #2 12.33 665,472 440 13.25 29% 20% 50% 9%
8.6 Node js #2 12.51 683,220 432 13.49 45% 3% 12% 49%
9.7 F# .NET Core #6 14.15 1,497,924 611 46.73 82% 76% 82% 92%
10 Perl #4 14.84 156,180 820 43.80 96% 64% 49% 88%
10 C# .NET Core #5 14.85 1,507,620 673 48.81 79% 80% 78% 94%
10 Ruby #3 15.16 269,680 751 18.83 72% 50% 89% 65%
10 Perl #3 15.20 156,648 854 44.55 80% 96% 71% 48%
10 F# .NET Core #5 15.21 1,488,824 529 46.78 74% 83% 61% 91%
12 Java 16.91 600,944 868 31.26 47% 74% 35% 30%
12 Python 3 16.98 445,760 512 31.44 28% 74% 47% 38%
16 Substrate VM #3 22.78 1,493,412 929 48.31 40% 81% 52% 40%
17 OCaml #2 25.10 968,936 637 25.08 0% 100% 0% 0%
18 Perl #2 25.73 204,116 710 43.70 0% 70% 1% 100%
18 Racket #2 26.67 1,249,336 729 59.46 52% 67% 57% 50%
19 JRuby #2 27.82 1,421,168 431 65.28 48% 45% 46% 97%
20 Go #2 28.99 338,504 802 60.81 54% 48% 68% 40%
20 Substrate VM 29.16 1,322,080 868 47.09 21% 45% 76% 21%
20 Ruby #2 29.43 342,760 431 56.75 65% 46% 51% 32%
21 C# .NET Core #4 30.02 1,603,732 856 103.04 91% 91% 80% 82%
21 Go #4 30.43 407,576 829 72.72 49% 81% 60% 50%
21 C# .NET Core #9 31.18 1,502,968 659 103.66 90% 79% 74% 91%
24 Perl 35.44 204,848 464 35.42 0% 0% 1% 100%
25 Ruby #9 36.75 367,496 335 67.59 74% 65% 26% 21%
32 C# .NET Core 46.27 1,248,496 635 46.54 61% 0% 1% 40%
32 F# .NET Core #2 46.79 1,429,944 426 47.09 1% 5% 9% 87%
37 Go #3 54.48 395,536 829 131.01 50% 90% 54% 49%
37 Racket 54.51 1,024,392 541 54.51 11% 0% 0% 90%
38 Go 55.77 389,200 741 131.81 82% 46% 48% 62%
51 Swift 74.94 891,392 715 143.53 52% 1% 100% 41%
67 Swift #2 97.94 692,836 671 97.90 0% 0% 0% 100%
116 Truffle Ruby #3 169.68 2,250,496 751 257.12 35% 35% 51% 31%
117 Truffle Ruby #2 171.07 2,256,344 431 258.92 46% 39% 38% 30%
133 Truffle Ruby #9 193.88 2,220,448 335 257.56 25% 33% 35% 40%
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 Bad Output
Java #4 Bad Output
Java #5 Bad Output
Java #2 Bad Output
Substrate VM #5 Bad Output
Substrate VM #6 Make Error
Substrate VM #2 Bad Output
Substrate VM #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