Re:Rust programs versus Go
by tex0 on Wednesday May 16, 2018 @05:58AM
(#17081165)
The benchmark is using some third party PCRE lib. This is probably necessary because Go's RE2 lacks some features, but it's not a good comparison.
[ Parent
| on HN ]
Re:Rust programs versus Go
by burntsushi on Wednesday May 16, 2018 @09:17AM
(#17082107)
> This is probably necessary because Go's RE2 lacks some features
No, it's because PCRE is faster than Go's standard library regex engine on this particular benchmark. There is another entry for Go (called just `Go` I believe) that uses Go's "regexp" package.
The regexredux benchmark itself does not require any "fancy" features. It can be satisfied by pure regular expressions.