Performance degradation on g++ 4.6
Oleg Smolsky
oleg.smolsky@riverbed.com
Mon Aug 1 18:44:00 GMT 2011
On 2011/7/29 14:07, Xinliang David Li wrote:
> Profiling tools are your best friend here. If you don't have access to
> any, the least you can do is to build the program with -pg option and
> use gprof tool to find out differences.
The test suite has a bunch of very basic C++ tests that are executed an
enormous number of times. I've built one with the obvious performance
degradation and attached the source, output and reports.
Here are some highlights:
v4.1: Total absolute time for int8_t constant folding: 30.42 sec
v4.6: Total absolute time for int8_t constant folding: 43.32 sec
Every one of the tests in this section had degraded... the first half
more than the second. I am not sure how much further I can take this -
the benchmarked code is very short and plain. I can post disassembly for
one (some?) of them if anyone is willing to take a look...
Thanks,
Oleg.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gmon41.prof
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: report41
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: simple_types_constant_folding.cpp
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: report46
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment-0003.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gmon46.prof
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: benchmark_shared_tests.h
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110801/e08df532/attachment.h>
More information about the Gcc
mailing list