From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.21.132 with SMTP id 126mr354997iov.94.1497281295694; Mon, 12 Jun 2017 08:28:15 -0700 (PDT) X-Received: by 10.157.26.93 with SMTP id u29mr18634otu.2.1497281295663; Mon, 12 Jun 2017 08:28:15 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f20no243534itb.0!news-out.google.com!k7ni5849itk.0!nntp.google.com!f20no243529itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 12 Jun 2017 08:28:15 -0700 (PDT) In-Reply-To: <65c5271c-33a1-4f36-977e-372af449d9c1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 193.163.1.105 References: <65c5271c-33a1-4f36-977e-372af449d9c1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Poor performance with GNAT-GPL-2017 From: Mark Lorenzen Injection-Date: Mon, 12 Jun 2017 15:28:15 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:46936 Date: 2017-06-12T08:28:15-07:00 List-Id: On Saturday, June 10, 2017 at 1:23:34 PM UTC+2, Charly wrote: > Hi, > > when I found the new GNAT-GPL-2017 this morning I was happy and installed it at once. > But I was rather disappointed about the poor performance. > To be more precise: > > When I switch to new hard- or software I allways check the performance with my private tool: > It solves Rubics Tabgle https://www.jaapsch.net/puzzles/tangle.htm with an ada programm, using one task per core. > > With GNAT-GPL-2016 (gcc 4.9.4) it took about 0,4 sec to find both solutions, > with GNAT-GPL-2017 (gcc 6.3.1) it takes about 0,8 sec to find both solutions, > which means the program is slower by a factor of 2. > > In both cases I use the following options: > -O3 -gnatA -gnatn -funroll-loops -fPIC -gnatp -g -gnatW8 -gnatVn -mtune=amdfam10 -gnat12 > > Any ideas?? Previous versions of GNAT did not have overflow check (-gnato) enabled by default, whereas newer versions have. Maybe this is what you are seeing. Regards, Mark L