The Computer Language
Benchmarks Game

regex-redux

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Pascal Free Pascal 7.80 99,480 1273 7.79 0% 0% 1% 100%
1.0 Pascal Free Pascal #2 3.81 102,432 1503 5.24 19% 90% 15% 14%
1.0 C gcc #2 4.12 103,028 1115 4.12 100% 0% 0% 1%
1.0 C gcc #3 2.37 103,436 1266 4.16 100% 24% 32% 23%
1.5 C gcc #4 1.48 152,352 1230 4.05 59% 99% 57% 61%
1.6 Ada 2005 GNAT #5 6.70 154,440 3640 19.34 68% 92% 63% 66%
1.6 Perl #4 14.66 155,708 820 43.59 63% 86% 53% 96%
1.6 Perl #3 14.98 156,260 854 44.29 60% 89% 51% 96%
1.8 C++ g++ 8.44 182,500 656 8.44 1% 100% 0% 0%
2.0 C++ g++ #2 5.75 201,072 700 8.50 1% 84% 1% 63%
2.0 C++ g++ #4 1.61 203,572 1315 4.18 100% 52% 57% 54%
2.0 Perl #2 25.38 203,776 710 43.31 95% 1% 71% 5%
2.1 Perl 34.29 204,320 464 34.28 0% 0% 0% 100%
2.2 C++ g++ #5 6.64 215,380 852 9.03 88% 24% 13% 12%
2.2 C++ g++ #3 17.33 215,384 853 25.78 13% 94% 43% 1%
2.4 Hack 3.44 238,608 815 3.18 34% 31% 44% 73%
2.7 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%
3.1 Ruby #2 25.64 311,964 431 25.63 6% 4% 60% 31%
3.1 Ruby #9 34.26 312,324 322 34.24 0% 0% 100% 0%
3.2 Go 53.89 322,376 741 129.05 70% 66% 50% 54%
3.3 Go #2 28.21 323,820 802 59.87 69% 46% 50% 48%
4.5 Python 3 15.22 447,324 512 27.44 25% 33% 32% 91%
4.6 Dart #2 30.08 454,592 685 32.24 10% 5% 81% 13%
5.7 TypeScript #3 4.20 567,744 610 4.24 59% 2% 1% 41%
6.0 Node.js #2 4.22 596,420 432 4.24 100% 0% 0% 1%
6.3 Java  #3 10.34 627,224 929 29.88 74% 72% 65% 79%
6.3 Java 16.96 627,352 868 31.56 46% 63% 43% 34%
6.6 Node.js 4.30 652,092 408 4.30 0% 2% 99% 0%
6.8 Go #3 54.31 679,144 829 133.72 49% 74% 75% 49%
6.9 TypeScript 4.31 683,648 440 4.31 7% 2% 5% 89%
6.9 TypeScript #2 4.30 683,748 440 4.30 37% 1% 44% 20%
7.0 Swift #2 94.16 692,120 671 94.12 11% 0% 0% 89%
8.0 Chapel 8.16 792,460 477 16.36 100% 17% 16% 70%
8.9 Swift 75.44 888,136 715 139.62 37% 33% 68% 48%
9.7 OCaml #2 24.66 968,800 637 24.64 1% 1% 0% 100%
10 Racket 50.50 1,013,084 536 50.50 1% 0% 50% 51%
13 Ruby JRuby #2 34.34 1,275,904 424 82.77 51% 48% 69% 75%
13 C# .NET Core 110.06 1,331,724 635 110.31 0% 43% 58% 0%
14 F# .NET Core #2 110.23 1,422,104 426 110.49 85% 0% 1% 15%
15 F# .NET Core #5 31.02 1,446,740 529 111.00 92% 89% 85% 91%
15 C# .NET Core #9 30.74 1,483,936 659 110.24 92% 89% 90% 88%
15 C# .NET Core #5 30.74 1,509,340 673 110.16 83% 92% 93% 92%
16 C# .NET Core #4 32.22 1,607,784 856 110.70 77% 94% 92% 80%
17 F# .NET Core #6 31.49 1,670,792 611 111.71 90% 87% 97% 81%
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 Bad Output
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 Interpreter #2 Bad Output
Matz's Interpreter #6 Failed
Matz's Interpreter #9 Bad Output
Matz's Interpreter #8 Failed
Rust #2 Make Error
Rust Make Error
Swift #3 Bad Output