So recently I was searching on command line tools that perform fast search and I stumbled upon a lot . Out of those it is my understanding that Ag is reportedly faster than grep, ack, and sift. With grep being the slowest.
now I have 300.000 strings on a file and I try to find which strings have a specific substring and return them back.
time grep 'substring' file.txt
real 0m0.030s
user 0m0.009s
sys 0m0.008s
.
time ag 'substring' file.txt ----> 5 secs
real 0m0.083s
user 0m0.038s
sys 0m0.014s
Am I doing something wrong , or ag is not used the way I am trying to use it?