comp.lang.ada
 help / color / mirror / Atom feed
From: Dirk Heinrichs <dirk.heinrichs@altum.de>
Subject: Re: Benchmark Ada, please
Date: Sun, 06 Jul 2014 19:24:17 +0200
Date: 2014-07-06T19:24:17+02:00	[thread overview]
Message-ID: <lpc0o2$pdc$1@online.de> (raw)
In-Reply-To: lp8rct$f4a$1@speranza.aioe.org

Guillaume Foliard wrote:

> Here are the numbers with GNAT GPL 2014 on a Core2 Q9650 @ 3.00GHz:

Tried it on my (Linux) system, Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, FSF 
Gnat 4.6 as provided by Debian Jessie:

> $ gnatmake -O3 rbc_ada.adb
> $ time ./rbc_ada
> ...
> Elapsed time is = 1.966112682

% gnatmake -O3 Rbc_Ada.adb
% time ./Rbc_Ada
...

Elapsed time is = 1.909959513
./Rbc_Ada  1,91s user 0,00s system 97% cpu 1,972 total

> As for the C++ version:

I used g++ 4.9 on the same system:
 
> $ g++ -o testc -O3 RBC_CPP.cpp
> $ time ./testc
> ...
> Elapsed time is   = 3.12033

% g++ -o testc -O3 RBC_CPP.cpp
% time ./testc                                                                                                                           
...
 
Elapsed time is   = 2.13568
 
./testc  2,14s user 0,00s system 99% cpu 2,143 total

> So the Ada version is significantly faster

As you can see, Ada is still faster, but I wouldn't call that significantly 
;).

Bye...

	Dirk
-- 
Dirk Heinrichs <dirk.heinrichs@altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key CB614542 | Jabber: dirk.heinrichs@altum.de
Sichere Internetkommunikation: http://www.retroshare.org

      parent reply	other threads:[~2014-07-06 17:24 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
2014-07-06 17:24   ` Dirk Heinrichs [this message]
replies disabled

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