Which command is faster to search any regex from large filebase? Possible commands are -
- ack
- ag
- pt
- csearch
Which one you would suggest me to go with?
Machine: 8 vCPUs, 30 GB memory
OS: Ubuntu 16.04LTS
Total number of files: 37,24,564
#linuxadmin #devops
-
Show this thread
-
-
Replying to @jeeger
Thanks for the suggestions. I will run this and will post the performance stats here.
1 reply 0 retweets 1 like -
Replying to @shaharia
Interesting. Here's a *very* comprehensive benchmark from the creator of ripgrep where he points out the pitfalls in a simple benchmark: https://blog.burntsushi.net/ripgrep/#code-search-benchmarks …
1 reply 0 retweets 0 likes -
(it's biased, obviously)
1 reply 0 retweets 0 likes -
Replying to @jeeger
I read that blog too. But it never mentioned csearch (codesearch library by Google, although it is not being maintained currently. But works faster than others). But the real problem is with csearch options are limited. So it may fit for any specific use-case.
1 reply 0 retweets 1 like
I didn't mention csearch because it uses indexing. It's a fundamentally different kind of tool, and wasn't what I was benchmarking.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.