This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49485] Performance problem with C++ code
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Oct 2011 01:09:02 +0000
- Subject: [Bug target/49485] Performance problem with C++ code
- Auto-submitted: auto-generated
- References: <bug-49485-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49485
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-20 01:09:02 UTC ---
apinski@apinskidesktop:~$ g++ t.cc -O3 -ffast-math
apinski@apinskidesktop:~$ ./a.out
apinski@apinskidesktop:~$ time ./a.out
real 0m0.329s
user 0m0.328s
sys 0m0.000s
apinski@apinskidesktop:~$ ~/local-gcc/bin/g++ t.cc -O3 -ffast-math
apinski@apinskidesktop:~$ time ./a.out
real 0m0.313s
user 0m0.312s
sys 0m0.000s
apinski@apinskidesktop:~$ ~/local-gcc/bin/g++ t.cc -O3 -ffast-math -m32
apinski@apinskidesktop:~$ time ./a.out
real 0m0.528s
user 0m0.384s
sys 0m0.008s
apinski@apinskidesktop:~$ g++ t.cc -O3 -ffast-math -m32
apinski@apinskidesktop:~$ time ./a.out
real 0m0.471s
user 0m0.464s
sys 0m0.008s
--- CUT ---
gcc version 4.7.0 20111005 (experimental) [trunk revision 179579] (GCC)
gcc version 4.4.5 (Debian 4.4.5-8)