Rate index regexp index 299/s -- -5% regexp 316/s 6% -- Rate regexp index regexp 294/s -- -12% index 332/s 13% -- Rate regexp index regexp 303/s -- -3% index 313/s 3% --
That's what I'd expect, since index and regex matches use the same algorithm (Boyer-Moore) to find constant strings
In reply to Re: is index faster than regexp for fixed text token?
by ikegami
in thread is index faster than regexp for fixed text token?
by sflitman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |