comp.lang.ada
 help / color / mirror / Atom feed
From: stephane.carrez@gmail.com
Subject: Re: Poor performance with GNAT-GPL-2017
Date: Fri, 16 Jun 2017 14:33:18 -0700 (PDT)
Date: 2017-06-16T14:33:18-07:00	[thread overview]
Message-ID: <d0fc88d6-cffb-40d8-af33-dc8c838d5e10@googlegroups.com> (raw)
In-Reply-To: <649ddcbf-c898-4115-bbe5-59d678a94727@googlegroups.com>

Le jeudi 15 juin 2017 18:31:52 UTC+2, Charly a écrit :
> 
> gnat-gpl-2016 -O
> duration 3485 ms
> 
> gnat-gpl-2016 -O2
> duration 4713 ms
> 
> gnat-gpl-2016 -O3
> duration 2772 ms
> 
> gnat-gpl-2017 -O
> duration 3375 ms
> 
> gnat-gpl-2017 -O2
> duration 4480 ms
> 
> gnat-gpl-2017 -O3
> duration 4823 ms
> 
> To summarize I draw two conclusions
> This year optimization level -O is the best choice,
> Try several optimization levels next year when gnat-gpl-2018 is out.

The best choice is different for each program.

As far as I'm concerned, I observe a 5% improvement in speed
and 8% reduction in code size. The -O2 or -O3 give better
performance for me.

If you look at gcc bug list at https://gcc.gnu.org/bugzilla/ you will
find some performance regressions for some very particular cases between
gcc 4.9 and gcc 6.3.  Fortunatly it does not affect the majority of
programs.

It might be interesting that you publish your program so that
further investigations can be conducted.

Stephane

  parent reply	other threads:[~2017-06-16 21:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-10 11:23 Poor performance with GNAT-GPL-2017 Charly
2017-06-10 12:43 ` Jacob Sparre Andersen
2017-06-11 20:48 ` Robert Eachus
2017-06-12 19:00   ` Charly
2017-06-13  4:14     ` Robert Eachus
2017-06-13 13:57       ` Lucretia
2017-06-13 17:41         ` Robert Eachus
2017-06-12 12:21 ` Emile
2017-06-12 18:22   ` Charly
2017-06-12 15:28 ` Mark Lorenzen
2017-06-13 19:46   ` alkhimey
2017-06-15 15:19     ` Charly
2017-06-15 16:31       ` Charly
2017-06-15 18:00         ` Anh Vo
2017-06-15 19:21           ` Charly
2017-06-15 19:24             ` Anh Vo
2017-06-16 21:33         ` stephane.carrez [this message]
2017-06-21 14:29           ` gautier_niouzes
2017-06-20 22:39         ` Anatoly Chernyshev
2017-06-19 10:26     ` briot.emmanuel
2017-06-19 12:25       ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox