Skip to content

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

@osiewicz

Description

@osiewicz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions