[Bug target/49485] Performance problem with C++ code

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 20 01:09:00 GMT 2011


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)



More information about the Gcc-bugs mailing list