comp.lang.ada
 help / color / mirror / Atom feed
From: Guillaume Foliard <guifo@wanadoo.fr>
Subject: Re: Benchmark Ada, please
Date: Sat, 05 Jul 2014 20:25:16 +0200
Date: 2014-07-05T20:25:16+02:00	[thread overview]
Message-ID: <lp9fu8$556$1@speranza.aioe.org> (raw)
In-Reply-To: lylhs7epes.fsf@pushface.org

Simon Wright wrote:
> Guillaume Foliard <guifo@wanadoo.fr> writes:
>> So the Ada version is significantly faster. I suppose it is mainly
>> because the Ada compiler has vectorized more loops than the C++ compiler
>> (add - ftree-vectorizer-verbose=2 to the above compilation commands to
>> check by yourself).
> 
> On Mac OS X (2.5 GHz Intel Core i5) I found the reverse, both with FSF
> GCC 4.9.0 and GNAT GPL 2014; C++ took ~ 1s, Ada took ~ 2s.
> 
> With GCC 4.9.0, gfortran was approximately the same as C++.
> 
> Apple's C++ (Xcode 5.1.1) was approximately the same as GCC's.
> 
> -ftree-vectorizer-verbose=2 had no effect with FSF GCC.

That's strange, here are my results with GCC FSF 4.9.0:

C++:
Elapsed time is   = 3.09426

Ada:
Elapsed time is = 2.111398804

C++ improved a bit, while Ada degraded, still outperforming C++.

Indeed under GCC FSF 4.9.0 the -ftree-vectorizer-verbose does not output any 
messages anymore. I have no clue why.

-- 
Guillaume Foliard


  reply	other threads:[~2014-07-05 18:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04 17:23 Benchmark Ada, please Victor Porton
2014-07-05 12:34 ` Guillaume Foliard
2014-07-05 13:00   ` Niklas Holsti
2014-07-05 17:00     ` Guillaume Foliard
2014-07-05 18:29       ` Niklas Holsti
2014-07-05 18:44         ` Niklas Holsti
2014-07-05 18:50         ` Guillaume Foliard
2014-07-05 19:09           ` Niklas Holsti
2014-07-05 16:33   ` Simon Wright
2014-07-05 18:25     ` Guillaume Foliard [this message]
2014-07-06 17:24   ` Dirk Heinrichs
replies disabled

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