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 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!postnews.google.com!w6g2000yqw.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: C++ threads vs. Ada tasks - surprised Date: Mon, 17 Aug 2009 02:44:02 -0700 (PDT) Organization: http://groups.google.com Distribution: world Message-ID: References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1250502243 8085 127.0.0.1 (17 Aug 2009 09:44:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 Aug 2009 09:44:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w6g2000yqw.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7841 Date: 2009-08-17T02:44:02-07:00 List-Id: Frederik Sausmikat wrote on comp.lang.ada: > Tomek Wa=C5=82kuski 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. I guess this must depend on the underlying platform as well as the options used when building GCC and the test program, then. -- Ludovic Brenta.