In what follows, file "conjectures" is a 6 billion bytes file in which each
line contains at most one letter P, and few (see output) have a digit
following a P. "rusage" is just a home-brew resource usage summary command.
rusage egrep 'P[0-9]' conjectures > xxx
695.55 real 688.33 user 2.40 sys 0
Thanks, all. That puts the runtimes on equal footing:
+ wc conjectures
125441818 125441818 6249180939 conjectures
+ rusage /home/jpl/src/grep-3.0/src/grep P[[:digit:]] conjectures
A[21]=11{11}:22 wrote:
> On Tue, Mar 21, 2017 at 7:09 PM, Paul Eggert wrote:
> > John P. Linder
On Wed, Mar 22, 2017 at 2:01 PM, Paul Eggert wrote:
> On 03/22/2017 05:44 AM, John P. Linderman wrote:
>
>> That puts the runtimes on equal footing:
>>
>> In my measurements, P[0-9] is still a tiny bit slower if one is using
> glibc regex, due to a performance pro