From: David Trudgett <dktrudgett@gmail.com>
Subject: Re: Toy computational "benchmark" in Ada (new blog post)
Date: Thu, 6 Jun 2019 22:28:25 -0700 (PDT)
Date: 2019-06-06T22:28:25-07:00 [thread overview]
Message-ID: <ee39a5e8-7f11-4ad9-8966-d5d498bab02d@googlegroups.com> (raw)
In-Reply-To: <87blzaxnei.fsf@nightsong.com>
Il giorno venerdì 7 giugno 2019 10:14:18 UTC+10, Paul Rubin ha scritto:
>
> 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
>
Those times are amazingly slow. Perhaps you would like to post the disassembly 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.
>
> I'll see if I can code and time a C++ version.
Righto.
Cheers,
David
next prev parent reply other threads:[~2019-06-07 5:28 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
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 [this message]
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