bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

slow grep


From: Aaron Holtzman
Subject: slow grep
Date: Wed, 13 Nov 2002 15:50:00 -0800
User-agent: Mutt/1.2.5i

[posted to both glibc and gnu-utils as the problem may be in either]

Using grep-2.5.1 / glibc-2.2.93-5 (RedHat 8) I see a very large
performance degradation for the following search pattern.

        wilder:/tmp$ time grep  -E '  +[0-9]+' test_input  > /dev/null

        real    0m2.334s
        user    0m2.330s
        sys     0m0.002s

For reference, the same test done on another (slower) machine, with
grep-2.4.2 and glibc-2.2.4-30 (RedHat 7.3).

        kurosawa:/tmp$ time grep -E  '  +[0-9]+' test_input  > /dev/null

        real    0m0.004s
        user    0m0.000s
        sys     0m0.000s

I've attached the test_input file for your convenience.

cheers,
aaron

Attachment: test_input.gz
Description: application/gunzip


reply via email to

[Prev in Thread] Current Thread [Next in Thread]