title: Why is Ag slower than grep?
body: <p>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. </p>
  
  <p>now I have 300.000 strings on a file and I try to find which strings have a specific substring and return them back. </p>
  
  <pre><code>time grep 'substring' file.txt
  
  real    0m0.030s
  user    0m0.009s
  sys     0m0.008s
  </code></pre>
  
  <p>.  </p>
  
  <pre><code>time ag 'substring' file.txt ----&gt; 5 secs
  
  real    0m0.083s
  user    0m0.038s
  sys     0m0.014s
  </code></pre>
  
  <p>Am I doing something wrong , or ag is not used the way I am trying to use it?</p>