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 2002:a24:dd88:: with SMTP id t130mr3099616itf.172.1559885305714; Thu, 06 Jun 2019 22:28:25 -0700 (PDT) X-Received: by 2002:a9d:6c13:: with SMTP id f19mr17780015otq.76.1559885305498; Thu, 06 Jun 2019 22:28:25 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!s188no163895itb.0!news-out.google.com!l135ni267itc.0!nntp.google.com!g15no157986itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Jun 2019 22:28:25 -0700 (PDT) In-Reply-To: <87blzaxnei.fsf@nightsong.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:8004:1420:de2:3c2c:6580:a925:cfe; posting-account=rfeywQoAAAC0TKn5ZjdVW0ytcQM1oMSv NNTP-Posting-Host: 2001:8004:1420:de2:3c2c:6580:a925:cfe References: <55b14350-e255-406c-ab11-b824da77995b@googlegroups.com> <6776b034-1318-49b3-8ff5-5a2f746fac9c@googlegroups.com> <87blzaxnei.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Toy computational "benchmark" in Ada (new blog post) From: David Trudgett Injection-Date: Fri, 07 Jun 2019 05:28:25 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56520 Date: 2019-06-06T22:28:25-07:00 List-Id: Il giorno venerd=C3=AC 7 giugno 2019 10:14:18 UTC+10, Paul Rubin ha scritto= : >=20 > I managed to build this with GNAT 6.3.0 on an Intel i5-3570S (3.4 GHz) > with 16GB of memory. Results: >=20 > SINGLE-THREADED V2 > Data points : 1024000000 > Sum of squares : 1.01064747680946E+10 > Duration (ms) : 2456.406644100 >=20 > MULTI-THREADED V2 > Data points : 1024000000 > Worker tasks : 4 > Sum of squares : 1.01064749025115E+10 > Duration (ms) : 689.120666560 >=20 Those times are amazingly slow. Perhaps you would like to post the disassem= bly of the inner loop to see what the issue is? > I don't know what those ms durations measure. This means that you did not read either the article or the source code. > Actual elapsed times were > 2 min 5 sec for the single threaded version and 36.484s for the parallel > version. The reported usermode cpu times were 2m3.2s for the single > threaded version and 2m18s (across the 4 cores) for the parallel version. >=20 > I'll see if I can code and time a C++ version. Righto. Cheers, David