Skip to content

Ugrep benchmarks shows that is faster most of the time than ripgrep, is it true? #2597

Answered by BurntSushi
qarmin asked this question in Q&A
Discussion options

You must be logged in to vote

I think it's really something you'll have to try for yourself. And ripgrep has more benchmarks than just what is in the README.

Look at most of the benchmarks in the repository you've linked. A lot of the timings are in the low milliseconds. And notice also that the benchmarks don't include match counts. Both of those things are important.

Firstly, very fast timings suggest that most of what you're measuring is process overhead. Usually the way around that is to increase the size of the haystack. In ugrep's single-file benchmarks, it's only searching a single ~100MB file. That's just not big enough. Here, let's take a look at how long it takes ripgrep to find a substring that only occurs …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants