I can't reproduce this here. I'll note that I'm testing on a Broadwell and you're on a Haswell, but I'd hope that doesn't make a huge difference, unless H.J. Lu's latest round of CPU detection stuff has gone amok.
model name : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (xenial-amd64)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | head -n1 GNU C Library (Ubuntu GLIBC 2.23-0ubuntu10) stable release version 2.23, by Roland McGrath et al. (xenial-amd64)adconrad@nosferatu:~/Downloads$ time ./strstr aa matches = 3000000 real 0m0.559s user 0m0.556s sys 0m0.001s (bionic-amd64)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | head -n1 GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27. (bionic-amd64)adconrad@nosferatu:~/Downloads$ time ./strstr aa matches = 3000000 real 0m0.527s user 0m0.522s sys 0m0.001s (base)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | head -n1 GNU C Library (Ubuntu GLIBC 2.28-0ubuntu1) stable release version 2.28. (base)adconrad@nosferatu:~/Downloads$ time ./strstr aa matches = 3000000 real 0m0.528s user 0m0.525s sys 0m0.002s -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797335 Title: strstr() on ubuntu18.04 8 times slower than on ubuntu16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
