Skip to content

Add regex-automata-0.4.8 benchmark #2109

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

Merged
merged 2 commits into from
May 7, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented May 7, 2025

I replaced regex with regex-automata, because regex became a wrapper crate that only builds a certain public API on top of regex-automata and regex-syntax.

It is slower, especially in opt-incr, for some reason:
image

I created a bunch of incremental scenarios:
image

Looks like adding an empty block is the fastest one, then println/modifying contents of an array is similar, and interestingly reordering two enum variants is almost twice slower.

Related issue: #2024

@Kobzol Kobzol requested a review from nnethercote May 7, 2025 07:53
@Kobzol Kobzol added the benchmark-update PR that updates the benchmark set. label May 7, 2025
@Kobzol Kobzol mentioned this pull request May 7, 2025
40 tasks
@Kobzol Kobzol merged commit 148104d into rust-lang:master May 7, 2025
11 checks passed
@Kobzol Kobzol deleted the add-regex-automata-0.4.8 branch May 7, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark-update PR that updates the benchmark set.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants