public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: Ian Lance Taylor <iant@google.com>
Cc: GCC Mailing List <gcc@gcc.gnu.org>
Subject: Re: very different compilation times [no optimisation]
Date: Fri, 06 Nov 2009 15:43:00 -0000	[thread overview]
Message-ID: <4AF443FB.6060206@starynkevitch.net> (raw)
In-Reply-To: <mcry6mjzmx5.fsf@dhcp-172-17-9-151.mtv.corp.google.com>

Ian Lance Taylor wrote:
> Basile STARYNKEVITCH <basile@starynkevitch.net> writes:
> 
>> Notice that gcc 4.4 is running four times slower that gcc-4.3!
> 
> Use the -ftime-report option with both compilers to see where the time
> is going.

I also put the figures in the PR41971

glinka ~/tmp 16:39 % gcc-4.3 -ftime-report -O0 -g -fPIC warmelt-normal-1.i -c -o warmelt-normal-1-gcc-4.3.o

Execution times (seconds)
  garbage collection    :   1.02 ( 3%) usr   0.00 ( 0%) sys   1.02 ( 3%) wall       0 kB ( 0%) ggc
  cfg cleanup           :   0.56 ( 2%) usr   0.00 ( 0%) sys   0.58 ( 2%) wall      19 kB ( 0%) ggc
  trivially dead code   :   0.24 ( 1%) usr   0.00 ( 0%) sys   0.24 ( 1%) wall       0 kB ( 0%) ggc
  df live regs          :   0.47 ( 1%) usr   0.03 ( 1%) sys   0.49 ( 1%) wall       0 kB ( 0%) ggc
  df reg dead/unused notes:   0.52 ( 2%) usr   0.00 ( 0%) sys   0.52 ( 1%) wall    6838 kB ( 2%) ggc
  register information  :   0.53 ( 2%) usr   0.00 ( 0%) sys   0.54 ( 1%) wall       0 kB ( 0%) ggc
  alias analysis        :   0.27 ( 1%) usr   0.01 ( 0%) sys   0.29 ( 1%) wall    2315 kB ( 1%) ggc
  rebuild jump labels   :   0.34 ( 1%) usr   0.00 ( 0%) sys   0.34 ( 1%) wall       0 kB ( 0%) ggc
  preprocessing         :   0.96 ( 3%) usr   0.53 (16%) sys   1.75 ( 5%) wall   24801 kB ( 7%) ggc
  lexical analysis      :   0.51 ( 2%) usr   1.28 (38%) sys   1.63 ( 4%) wall       0 kB ( 0%) ggc
  parser                :   2.72 ( 8%) usr   0.76 (23%) sys   3.54 (10%) wall  100081 kB (28%) ggc
  inline heuristics     :   1.26 ( 4%) usr   0.00 ( 0%) sys   1.22 ( 3%) wall      70 kB ( 0%) ggc
  tree gimplify         :   2.23 ( 7%) usr   0.15 ( 5%) sys   2.39 ( 7%) wall   58497 kB (16%) ggc
  tree eh               :   0.21 ( 1%) usr   0.00 ( 0%) sys   0.20 ( 1%) wall       0 kB ( 0%) ggc
  tree CFG construction :   0.65 ( 2%) usr   0.06 ( 2%) sys   0.73 ( 2%) wall   37602 kB (10%) ggc
  tree CFG cleanup      :   0.42 ( 1%) usr   0.00 ( 0%) sys   0.43 ( 1%) wall       0 kB ( 0%) ggc
  dominance computation :   0.21 ( 1%) usr   0.00 ( 0%) sys   0.22 ( 1%) wall       0 kB ( 0%) ggc
  expand                :   7.09 (21%) usr   0.28 ( 8%) sys   7.36 (20%) wall   89051 kB (24%) ggc
  jump                  :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall       0 kB ( 0%) ggc
  local alloc           :   2.87 ( 9%) usr   0.02 ( 1%) sys   2.91 ( 8%) wall    3032 kB ( 1%) ggc
  global alloc          :   7.31 (22%) usr   0.12 ( 4%) sys   7.42 (20%) wall   18079 kB ( 5%) ggc
  thread pro- & epilogue:   0.66 ( 2%) usr   0.00 ( 0%) sys   0.68 ( 2%) wall     256 kB ( 0%) ggc
  final                 :   1.95 ( 6%) usr   0.08 ( 2%) sys   2.01 ( 5%) wall     360 kB ( 0%) ggc
  symout                :   0.10 ( 0%) usr   0.01 ( 0%) sys   0.09 ( 0%) wall   21440 kB ( 6%) ggc
  TOTAL                 :  33.13             3.33            36.64             363506 kB
glinka ~/tmp 16:40 % gcc-4.4 -ftime-report -O0 -g -fPIC warmelt-normal-1.i -c -o warmelt-normal-1-gcc-4.4.o

Execution times (seconds)
  garbage collection    :   0.11 ( 1%) usr   0.00 ( 0%) sys   0.11 ( 1%) wall       0 kB ( 0%) ggc
  callgraph construction:   0.25 ( 2%) usr   0.01 ( 0%) sys   0.28 ( 2%) wall   13570 kB ( 3%) ggc
  callgraph optimization:   0.04 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall     339 kB ( 0%) ggc
  cfg cleanup           :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall      24 kB ( 0%) ggc
  trivially dead code   :   0.07 ( 1%) usr   0.00 ( 0%) sys   0.10 ( 1%) wall       0 kB ( 0%) ggc
  df live regs          :   0.06 ( 1%) usr   0.00 ( 0%) sys   0.06 ( 0%) wall       0 kB ( 0%) ggc
  df reg dead/unused notes:   0.13 ( 1%) usr   0.00 ( 0%) sys   0.13 ( 1%) wall    6956 kB ( 2%) ggc
  register information  :   0.09 ( 1%) usr   0.00 ( 0%) sys   0.08 ( 1%) wall       0 kB ( 0%) ggc
  alias analysis        :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall    2405 kB ( 1%) ggc
  rebuild jump labels   :   0.05 ( 0%) usr   0.01 ( 0%) sys   0.06 ( 0%) wall       0 kB ( 0%) ggc
  preprocessing         :   0.98 ( 9%) usr   0.61 (20%) sys   1.76 (13%) wall   25440 kB ( 6%) ggc
  lexical analysis      :   0.41 ( 4%) usr   1.15 (38%) sys   1.61 (12%) wall       0 kB ( 0%) ggc
  parser                :   1.69 (16%) usr   0.83 (27%) sys   2.37 (17%) wall   71977 kB (17%) ggc
  inline heuristics     :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall       0 kB ( 0%) ggc
  tree gimplify         :   1.46 (13%) usr   0.14 ( 5%) sys   1.56 (11%) wall   88334 kB (21%) ggc
  tree eh               :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall       0 kB ( 0%) ggc
  tree CFG construction :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.05 ( 0%) wall   13199 kB ( 3%) ggc
  tree CFG cleanup      :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 1%) wall       0 kB ( 0%) ggc
  tree find ref. vars   :   0.05 ( 0%) usr   0.01 ( 0%) sys   0.05 ( 0%) wall    9130 kB ( 2%) ggc
  tree PHI insertion    :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall     189 kB ( 0%) ggc
  tree SSA rewrite      :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall   11835 kB ( 3%) ggc
  tree SSA other        :   0.06 ( 1%) usr   0.02 ( 1%) sys   0.12 ( 1%) wall     193 kB ( 0%) ggc
  tree operand scan     :   0.07 ( 1%) usr   0.03 ( 1%) sys   0.05 ( 0%) wall    7012 kB ( 2%) ggc
  tree SSA to normal    :   0.08 ( 1%) usr   0.00 ( 0%) sys   0.09 ( 1%) wall     448 kB ( 0%) ggc
  dominance computation :   0.05 ( 0%) usr   0.01 ( 0%) sys   0.01 ( 0%) wall       0 kB ( 0%) ggc
  expand                :   1.80 (17%) usr   0.06 ( 2%) sys   1.65 (12%) wall  131397 kB (31%) ggc
  varconst              :   0.00 ( 0%) usr   0.01 ( 0%) sys   0.00 ( 0%) wall      24 kB ( 0%) ggc
  integrated RA         :   1.42 (13%) usr   0.01 ( 0%) sys   1.54 (11%) wall    3144 kB ( 1%) ggc
  reload                :   0.94 ( 9%) usr   0.01 ( 0%) sys   0.93 ( 7%) wall   17800 kB ( 4%) ggc
  thread pro- & epilogue:   0.13 ( 1%) usr   0.00 ( 0%) sys   0.15 ( 1%) wall     342 kB ( 0%) ggc
  final                 :   0.40 ( 4%) usr   0.01 ( 0%) sys   0.47 ( 3%) wall    2487 kB ( 1%) ggc
  symout                :   0.20 ( 2%) usr   0.02 ( 1%) sys   0.22 ( 2%) wall   22415 kB ( 5%) ggc
  TOTAL                 :  10.83             3.03            13.90             429820 kB
glinka ~/tmp 16:41 %


Regards

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

  reply	other threads:[~2009-11-06 15:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 15:04 Basile STARYNKEVITCH
2009-11-06 15:16 ` Dave Korn
2009-11-06 15:36   ` Basile STARYNKEVITCH
2009-11-06 15:35 ` Ian Lance Taylor
2009-11-06 15:43   ` Basile STARYNKEVITCH [this message]
2009-11-06 15:49     ` Dave Korn
2009-11-06 16:00       ` Ian Lance Taylor
2009-11-06 16:48         ` Basile STARYNKEVITCH
2009-11-06 16:37     ` Basile STARYNKEVITCH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AF443FB.6060206@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=gcc@gcc.gnu.org \
    --cc=iant@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).