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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,be98569334bf359 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsreader2.netcologne.de!not-for-mail From: Frederik Sausmikat Newsgroups: comp.lang.ada Subject: Re: C++ threads vs. Ada tasks - surprised Date: Mon, 17 Aug 2009 11:39:42 +0200 Distribution: world Message-ID: References: NNTP-Posting-Host: xdsl-81-173-145-103.netcologne.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newsreader2.netcologne.de 1250501982 19111 81.173.145.103 (17 Aug 2009 09:39:42 GMT) X-Complaints-To: abuse@netcologne.de NNTP-Posting-Date: Mon, 17 Aug 2009 09:39:42 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7840 Date: 2009-08-17T11:39:42+02:00 List-Id: Tomek WaƂkuski wrote: > On 17 Sie, 10:04, Frederik Sausmikat > wrote: >> Just FYI, on my machine the C++ version is the one being ~2x faster >> (both gnat and g++ are version 4.3.3 here). >> > How many tests have you performed? > > I have done ~20 tests for both versions and Ada version is average > ~1,5x faster. I just did 100 runs of each version with a constant number of iterations and averaged the execution times. The result is the same as before with the C++ version being about 2 times faster than the Ada version.