[Bug target/19923] openssl is slower when compiled with gcc 4.0 than 3.3
yx at cs dot ucla dot edu
gcc-bugzilla@gcc.gnu.org
Wed Jun 1 20:47:00 GMT 2005
------- Additional Comments From yx at cs dot ucla dot edu 2005-06-01 20:47 -------
When we ran 'openssh speed md2', we did see that gcc-4.0 was slower
than earlier versions, so we created a minimal test case, which
we will attach. Here is how long it took to run a 34 megabyte
file through the test program when compiled with various compilers and
options:
gcc-2.95.3 -fPIC -O1 4.940s
gcc-4.0.0 -fPIC -O1 3.510s
gcc-3.4.3 -fPIC -O1 5.190s
gcc-2.95.3 -fPIC -O2 3.470s
gcc-3.4.3 -fPIC -O2 3.460s
gcc-4.0.0 -fPIC -O2 4.050s
gcc-2.95.3 -fPIC -O3 3.400s
gcc-3.4.3 -fPIC -O3 3.740s
gcc-4.0.0 -fPIC -O3 4.010s
This test was done on a pentium 4 workstation, and no smoothing was
done on the resulting times, but they seemed to be repeatable.
We also tried without -fPIC, but did not see as large a regression there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19923
More information about the Gcc-bugs
mailing list