4 ms·
Why wouldn't you? The other poster hasn't even said which regex engine or which tool they're measuring. PCRE is absolutely a competitor to Rust's regex crate a
by burntsushi 4y ago
Why wouldn't you? The other poster hasn't even said which regex engine or which tool they're measuring.
PCRE is absolutely a competitor to Rust's regex crate and it makes sense to compare them.
If all you're doing is measuring the time it takes to find `foo` or `\w+_foo`, then the specific regex engine being used is just an implementation detail.
I'm not saying that using --pcre2 is wrong. It is certainly a useful comparison. But using the default regex engine when the task is "measure a grep" is certainly not wrong either.