27.9 New greps Are Much Faster
In article 27.6 , we used the runtime program (39.4 ) to compare the execution times of fgrep , egrep , and grep . This time we'll use runtime to show the average time needed to search for the string Waldo in a large directory of files. First, let's show the results using agrep : % Here's the same output for GNU egrep : % Now compare these numbers against those in article 27.6 . For example, here's what we get from the much-maligned everyday grep : % grep took four clock seconds to search all the files, while both agrep and GNU egrep breezed by in one. So are you a believer yet? - , |
|