comp.lang.ada
 help / color / mirror / Atom feed
From: David Trudgett <dktrudgett@gmail.com>
Subject: Re: Toy computational "benchmark" in Ada (new blog post)
Date: Thu, 6 Jun 2019 16:14:10 -0700 (PDT)
Date: 2019-06-06T16:14:10-07:00	[thread overview]
Message-ID: <431f7439-e540-4f8e-bb6d-8542cceab52f@googlegroups.com> (raw)
In-Reply-To: <01dfb261-56b9-4bbb-aad9-e0099071f559@googlegroups.com>

Il giorno venerdì 7 giugno 2019 03:48:19 UTC+10, Olivier Henley ha scritto:
> 
> Interesting but did you run the C version on your machine alongside your Ada version?
> 
> In the text, from what I understand, you are comparing the Ada computation time to the reported OP C performance (17ms) and I fail to understand how the comparison can be valid if performed on different machines?   
> 
> Note: I tried to find the original C code but in vain and from my rapid reading of your blog post you do not mention having run that C code yourself.
> 
> Thank you,
> 
> Olivier

Good point, Olivier. It would have been ideal to run the same C code on my machine, but alas! there are difficulties:

o I would have to run the example on Windows (maybe a particular version?)

o I would have to run Visual Studio C compiler (maybe a particular version?)

o I would have to research how to enable AVX2 instructions in that environment.

o I would have to guess the exact configurations, etc., used originally.

None of those points is "fun", which was the only point of the exercise, really.

Having said that, I do believe that the machine I ran this on, being quite a few years old by now, is probably within the ballpark of the original hardware. But that is difficult to say, because it is not just (or even mostly) a processor and clock speed that will determine the result of this exercise, but also RAM speed, cache speed and size, bus bandwidths, and lots of other things. (Which is why, as you suggest, it would have been ideal to run the same code on my setup.)

If it makes any difference (you may wish to try it yourself), I have made the Ada code available here:

https://gitlab.com/DataLinkDroid/ada-2012-procedural-map-reduce/tree/master/src

Regards,
David

  reply	other threads:[~2019-06-06 23:14 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 [this message]
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
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