Created
August 30, 2015 07:17
-
-
Save BeRo1985/9288f21c9216b98b562e to your computer and use it in GitHub Desktop.
FLRE benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Applied on http://www.gutenberg.org/files/3200/old/mtent12.txt at a whole- | |
file-loaded-into-the-RAM-base on a desktop computer with a Intel Xeon | |
E3-1245v2 CPU and 16GB (2x8GB) DDR3-1600 unbuffered ECC RAM under Windows | |
8.1 | |
Time | Match count | |
============================================================================== | |
FLRE: | |
/Twain/ : 16 ms | 2388 | |
/(?i)Twain/ : 0 ms | 2657 | |
/[a-z]shing/ : 16 ms | 1877 | |
/Huck[a-zA-Z]+|Saw[a-zA-Z]+/ : 15 ms | 396 | |
/\b\w+nn\b/ : 360 ms | 359 | |
/[a-q][^u-z]{13}x/ : 109 ms | 4878 | |
/Tom|Sawyer|Huckleberry|Finn/ : 31 ms | 3015 | |
/(?i)Tom|Sawyer|Huckleberry|Finn/ : 32 ms | 4820 | |
/.{0,2}(Tom|Sawyer|Huckleberry|Finn)/ : 250 ms | 3015 | |
/.{2,4}(Tom|Sawyer|Huckleberry|Finn)/ : 312 ms | 2220 | |
/Tom.{10,25}river|river.{10,25}Tom/ : 63 ms | 2 | |
/[a-zA-Z]+ing/ : 296 ms | 95863 | |
/[a-zA-Z]{0,12}ing/ : 360 ms | 96169 | |
/([A-Za-z]awyer|[A-Za-z]inn)\s/ : 15 ms | 313 | |
/["'][^"']{0,30}[?!\.]["']/ : 63 ms | 9793 | |
============================================================================== | |
PCRE 8.21 (DFA mode off): | |
/Twain/ : 16 ms | 2388 | |
/(?i)Twain/ : 78 ms | 2657 | |
/[a-z]shing/ : 422 ms | 1877 | |
/Huck[a-zA-Z]+|Saw[a-zA-Z]+/ : 31 ms | 396 | |
/\b\w+nn\b/ : 625 ms | 359 | |
/[a-q][^u-z]{13}x/ : 594 ms | 4878 | |
/Tom|Sawyer|Huckleberry|Finn/ : 31 ms | 3015 | |
/(?i)Tom|Sawyer|Huckleberry|Finn/ : 312 ms | 4820 | |
/.{0,2}(Tom|Sawyer|Huckleberry|Finn)/ : 3969 ms | 3015 | |
/.{2,4}(Tom|Sawyer|Huckleberry|Finn)/ : 4156 ms | 2220 | |
/Tom.{10,25}river|river.{10,25}Tom/ : 63 ms | 2 | |
/[a-zA-Z]+ing/ : 1000 ms | 95863 | |
/[a-zA-Z]{0,12}ing/ : 1156 ms | 96169 | |
/([A-Za-z]awyer|[A-Za-z]inn)\s/ : 891 ms | 313 | |
/["'][^"']{0,30}[?!\.]["']/ : 62 ms | 9793 | |
============================================================================== | |
PCRE 8.21 (DFA mode on): | |
/Twain/ : 31 ms | 2388 | |
/(?i)Twain/ : 110 ms | 2657 | |
/[a-z]shing/ : 890 ms | 1877 | |
/Huck[a-zA-Z]+|Saw[a-zA-Z]+/ : 32 ms | 396 | |
/\b\w+nn\b/ : 1281 ms | 359 | |
/[a-q][^u-z]{13}x/ : 2391 ms | 4878 | |
/Tom|Sawyer|Huckleberry|Finn/ : 31 ms | 3015 | |
/(?i)Tom|Sawyer|Huckleberry|Finn/ : 422 ms | 4820 | |
/.{0,2}(Tom|Sawyer|Huckleberry|Finn)/ : 4531 ms | 3015 | |
/.{2,4}(Tom|Sawyer|Huckleberry|Finn)/ : 5953 ms | 2220 | |
/Tom.{10,25}river|river.{10,25}Tom/ : 78 ms | 2 | |
/[a-zA-Z]+ing/ : 1969 ms | 95863 | |
/[a-zA-Z]{0,12}ing/ : 2281 ms | 96169 | |
/([A-Za-z]awyer|[A-Za-z]inn)\s/ : 1344 ms | 313 | |
/["'][^"']{0,30}[?!\.]["']/ : 125 ms | 9793 | |
============================================================================== | |
regex.pp: | |
/Twain/ : 16 ms | 2388 | |
/(?i)Twain/ : 656 ms | 2657 | |
/[a-z]shing/ : 1047 ms | 1877 | |
/Huck[a-zA-Z]+|Saw[a-zA-Z]+/ : 828 ms | 396 | |
/\b\w+nn\b/ : 547 ms | 0 | |
/[a-q][^u-z]{13}x/ : 2312 ms | 4878 | |
/Tom|Sawyer|Huckleberry|Finn/ : 1828 ms | 3015 | |
/(?i)Tom|Sawyer|Huckleberry|Finn/ : 2094 ms | 4820 | |
/.{0,2}(Tom|Sawyer|Huckleberry|Finn)/ : 15766 ms | 0 | |
/.{2,4}(Tom|Sawyer|Huckleberry|Finn)/ : 6781 ms | 2220 | |
/Tom.{10,25}river|river.{10,25}Tom/ : 859 ms | 2 | |
/[a-zA-Z]+ing/ : 2313 ms | 95863 | |
/[a-zA-Z]{0,12}ing/ : 2047 ms | 0 | |
/([A-Za-z]awyer|[A-Za-z]inn)\s/ : 1500 ms | 289 | |
/["'][^"']{0,30}[?!\.]["']/ : 968 ms | 0 | |
============================================================================== | |
RegExpr.pas: | |
/Twain/ : 34313 ms | 2388 | |
/(?i)Twain/ : 38984 ms | 2657 | |
/[a-z]shing/ : 28172 ms | 1877 | |
/Huck[a-zA-Z]+|Saw[a-zA-Z]+/ : 6000 ms | 396 | |
/\b\w+nn\b/ : 10297 ms | 359 | |
/[a-q][^u-z]{13}x/ : 71484 ms | 4878 | |
/Tom|Sawyer|Huckleberry|Finn/ : 43829 ms | 3015 | |
/(?i)Tom|Sawyer|Huckleberry|Finn/ : 71984 ms | 4820 | |
/.{0,2}(Tom|Sawyer|Huckleberry|Finn)/ : 57359 ms | 3015 | |
/.{2,4}(Tom|Sawyer|Huckleberry|Finn)/ : 53391 ms | 2727 | |
/Tom.{10,25}river|river.{10,25}Tom/ : 469 ms | 4 | |
/[a-zA-Z]+ing/ : 1396078 ms | 95863 | |
/[a-zA-Z]{0,12}ing/ : 1393969 ms | 96169 | |
/([A-Za-z]awyer|[A-Za-z]inn)\s/ : 6750 ms | 313 | |
/["'][^"']{0,30}[?!\.]["']/ : 143500 ms | 9793 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment