Skip to content

Conversation

Kobzol
Copy link
Member

@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
@Kobzol Kobzol mentioned this pull request May 15, 2025
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