comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: Toy computational "benchmark" in Ada (new blog post)
Date: Thu, 06 Jun 2019 17:13:57 -0700
Date: 2019-06-06T17:13:57-07:00	[thread overview]
Message-ID: <87blzaxnei.fsf@nightsong.com> (raw)
In-Reply-To: 6776b034-1318-49b3-8ff5-5a2f746fac9c@googlegroups.com

David Trudgett <dktrudgett@gmail.com> 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.


  reply	other threads:[~2019-06-07  0:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 11:05 Toy computational "benchmark" in Ada (new blog post) David Trudgett
2019-06-06 17:48 ` Olivier Henley
2019-06-06 23:14   ` David Trudgett
2019-06-06 23:27     ` Paul Rubin
2019-06-07  5:24       ` David Trudgett
2019-06-07  5:36         ` Paul Rubin
2019-06-06 20:31 ` Jeffrey R. Carter
2019-06-06 23:02   ` David Trudgett
2019-06-07  0:13     ` Paul Rubin [this message]
2019-06-07  4:50       ` Paul Rubin
2019-06-07  5:41         ` David Trudgett
2019-06-07  6:00           ` Paul Rubin
2019-06-07  6:25             ` David Trudgett
2019-06-07  6:38               ` Paul Rubin
2019-06-07  5:28       ` David Trudgett
2019-06-07  5:57         ` Paul Rubin
2019-06-07  6:21           ` David Trudgett
2019-06-07  6:22             ` Paul Rubin
2019-06-07  6:29               ` David Trudgett
2019-06-07  6:42                 ` Paul Rubin
2019-06-07 17:55     ` Jeffrey R. Carter
2019-06-08 11:00       ` David Trudgett
2019-06-07  1:42 ` johnscpg
2019-06-07  5:34   ` David Trudgett
2019-06-08 10:17     ` David Trudgett
2019-06-08  1:14 ` johnscpg
2019-06-08 10:56   ` David Trudgett
replies disabled

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