baohaojun / beagrep

Grep 2G source code in 0.23 second.
http://baohaojun.github.com/beagrep.html
Other
108 stars 20 forks source link

Question: comparing to ripgrep #7

Closed seagle0128 closed 6 years ago

seagle0128 commented 6 years ago

How about the performance comparing to ripgrep? It's said that it's much faster than ag. What's the pros and cons?

baohaojun commented 6 years ago

They are very different things. Beagrep used a search engine.

You can think this way: if you need to grep the whole Internet, will you run ripgrep/ag/ack on all the data of the Internet, or will you use Google first, and run grep only on the results that Google returns?