Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperscan/bench: Rust regex benchmark collects memory unnecessarily #30

Open
osiewicz opened this issue Jan 27, 2023 · 0 comments
Open

Comments

@osiewicz
Copy link

Benchmark for Rust regex crate collects memory unnecessarily, which skews the results in favor of hypescan variant; see this line. It also does not bail after the first match like hyperscan_bench. An ideal solution to mimick Hyperscan behaviour would be to do something like re.find_iter(text).next() instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant