|
Regular expression | PCRE (GCC) | PCRE DFA (GCC) | TRE (GCC) | Onig- uruma (GCC) | RE2 (GCC) | PCRE JIT (GCC) | FLRE (Delphi 7) |
---|---|---|---|---|---|---|---|
Twain | 3 ms | 13 ms | 304 ms | 15 ms | 2 ms | 14 ms | 8 ms |
(?i)Twain | 53 ms | 81 ms | 391 ms | 130 ms | 68 ms | 15 ms | 9 ms |
[a-z]shing | 397 ms | 629 ms | 450 ms | 14 ms | 102 ms | 13 ms | 9 ms |
Huck[a-zA-Z]+|Saw[a-zA-Z]+ | 19 ms | 20 ms | 497 ms | 41 ms | 57 ms | 2 ms | 13 ms |
\b\w+nn\b | 583 ms | 887 ms | 837 ms | 739 ms | 68 ms | 84 ms | 34 ms |
[a-q][^u-z]{13}x | 481 ms | 1778 ms | 1365 ms | 45 ms | 2594 ms | 1 ms | 120 ms |
Tom|Sawyer|Huckleberry|Finn | 25 ms | 27 ms | 876 ms | 47 ms | 60 ms | 24 ms | 22 ms |
(?i)Tom|Sawyer|Huckleberry|Finn | 275 ms | 322 ms | 1245 ms | 626 ms | 88 ms | 66 ms | 33 ms |
.{0,2}(Tom|Sawyer|Huckleberry|Finn) | 3462 ms | 3547 ms | 2341 ms | 106 ms | 70 ms | 332 ms | 37 ms |
.{2,4}(Tom|Sawyer|Huckleberry|Finn) | 3601 ms | 4534 ms | 3392 ms | 104 ms | 70 ms | 359 ms | 36 ms |
Tom.{10,25}river|river.{10,25}Tom | 53 ms | 67 ms | 517 ms | 78 ms | 62 ms | 13 ms | 34 ms |
[a-zA-Z]+ing | 831 ms | 1453 ms | 597 ms | 903 ms | 116 ms | 66 ms | 55 ms |
\s[a-zA-Z]{0,12}ing\s | 366 ms | 579 ms | 881 ms | 63 ms | 85 ms | 93 ms | 47 ms |
([A-Za-z]awyer|[A-Za-z]inn)\s | 759 ms | 985 ms | 890 ms | 223 ms | 99 ms | 30 ms | 15 ms |
["'][^"']{0,30}[?!\.]["'] | 44 ms | 72 ms | 529 ms | 74 ms | 64 ms | 10 ms | 37 ms |