This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19923] openssl is slower when compiled with gcc 4.0 than 3.3
- From: "yx at cs dot ucla dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2005 20:47:11 -0000
- Subject: [Bug target/19923] openssl is slower when compiled with gcc 4.0 than 3.3
- References: <20050212153001.19923.gj@pointblue.com.pl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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