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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Toy computational "benchmark" in Ada (new blog post) Date: Thu, 06 Jun 2019 17:13:57 -0700 Organization: A noiseless patient Spider Message-ID: <87blzaxnei.fsf@nightsong.com> References: <55b14350-e255-406c-ab11-b824da77995b@googlegroups.com> <6776b034-1318-49b3-8ff5-5a2f746fac9c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b0f0f522fb2e31df244925cac2903ee1"; logging-data="11700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uoss9D2xXCKOcMZZaoktQ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:TYVPl2L7oSTkmVdamsGT6kgBMsk= sha1:6U2gNO6tjTzRLmJy14rYRvL0w5c= Xref: reader01.eternal-september.org comp.lang.ada:56515 Date: 2019-06-06T17:13:57-07:00 List-Id: David Trudgett writes: > Thanks, Jeff! I have put the code into a public-accessible Gitlab repo here: I managed to build this with GNAT 6.3.0 on an Intel i5-3570S (3.4 GHz) with 16GB of memory. Results: SINGLE-THREADED V2 Data points : 1024000000 Sum of squares : 1.01064747680946E+10 Duration (ms) : 2456.406644100 MULTI-THREADED V2 Data points : 1024000000 Worker tasks : 4 Sum of squares : 1.01064749025115E+10 Duration (ms) : 689.120666560 I don't know what those ms durations measure. 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. I'll see if I can code and time a C++ version.