public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11607] New: strstr function very slow.
@ 2010-05-17  9:27 xoswald at debian dot org
  2010-05-17  9:28 ` [Bug libc/11607] " xoswald at debian dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: xoswald at debian dot org @ 2010-05-17  9:27 UTC (permalink / raw)
  To: glibc-bugs

I think tere are a huge regression for the strstr function between version 2.7
and 2.10.

In our code we use the 'strstr' function a lot and became to the fact that
strstr is having a strange behaviour.

I attach 2 file so you can test it.
$gcc test-strstr.c -o test
$time test 10000

Some results (User Time):
=================
Ubuntu 8.04 : 10s (glibc 2.7)
Ubuntu 9.04 : 1m20s (glibc 2.10)
Ubuntu 10.04 : 1m20s (glibc 2.10)
Debian lenny : 8s (glibc 2.7)
Debian Squeeze : 1m10s (glibc 2.10)

The results are the same on AMD64 and i386 architectures.

-- 
           Summary: strstr function very slow.
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: xoswald at debian dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11607

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-30 18:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11607-131@http.sourceware.org/bugzilla/>
2012-06-28 22:23 ` [Bug libc/11607] strstr function very slow maxim.kuvyrkov at gmail dot com
2012-06-28 22:24 ` maxim.kuvyrkov at gmail dot com
2012-06-28 22:40 ` eblake at redhat dot com
2012-09-04 15:14 ` carlos_odonell at mentor dot com
2012-09-04 20:02 ` maxim.kuvyrkov at gmail dot com
2014-06-30 18:04 ` fweimer at redhat dot com
2010-05-17  9:27 [Bug libc/11607] New: " xoswald at debian dot org
2010-05-17  9:28 ` [Bug libc/11607] " xoswald at debian dot org
2010-05-17  9:29 ` xoswald at debian dot org
2010-05-17  9:33 ` xoswald at debian dot org
2010-05-17  9:42 ` jakub at redhat dot com
2010-05-17 12:14 ` eblake at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).