Why ugrep-v3.1.7-release is 1.95 times faster than rg-v12.1.1-release? #1796
-
After reading some loooong loooong benchmarks and a lot of grep-like tools posts from different sites. I thought to test the speed of ugrep and rg myself.So
Laptop Specs
Screenshot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
13ms is nominal. That could be, for example, explained by the number of threads each tool spins up. Your benchmark does not control for that. It could also be explained by different searching techniques, e.g., mmap vs standard read calls. Or maybe ripgrep is reading a config file that you have. I'm on mobile and haven't done any analysis, so I can't say for sure. My point is that the benchmark is somewhat senseless. Please find a benchmark with more than a few milliseconds of difference. For example, by substantially increasing corpus size.
Why are you surprised? |
Beta Was this translation helpful? Give feedback.
13ms is nominal. That could be, for example, explained by the number of threads each tool spins up. Your benchmark does not control for that. It could also be explained by different searching techniques, e.g., mmap vs standard read calls. Or maybe ripgrep is reading a config file that you have. I'm on mobile and haven't done any analysis, so I can't say for sure. My point is that the benchmark is somewhat senseless. Please find a benchmark with more than a few milliseconds of difference. For example, by substantially increasing corpus size.
Why are you surprised?