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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,56525db28240414a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.236.191.70 with SMTP id f46mr12574350yhn.44.1343910306529; Thu, 02 Aug 2012 05:25:06 -0700 (PDT) Path: a15ni5333700qag.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.glorb.com!news-out.readnews.com!transit4.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Keean Schupke Newsgroups: comp.lang.ada Subject: Re: Efficient Sequential Access to Arrays Date: Mon, 30 Jul 2012 07:04:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <178cf69e-7c37-4b26-90fc-1061e1afa41e@googlegroups.com> References: <01983f1c-f842-4b1f-a180-bcef531dad4c@googlegroups.com> <543da562-a07d-4aba-b46b-11d1d7a90900@googlegroups.com> <876295g3oh.fsf@adaheads.sparre-andersen.dk> <501651ef$0$6565$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 91.143.78.202 Mime-Version: 1.0 X-Trace: posting.google.com 1343657083 28052 127.0.0.1 (30 Jul 2012 14:04:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 30 Jul 2012 14:04:43 +0000 (UTC) In-Reply-To: <501651ef$0$6565$9b4e6d93@newsspool4.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.143.78.202; posting-account=T5Z2vAoAAAB8ExE3yV3f56dVATtEMNcM User-Agent: G2/1.0 X-Received-Bytes: 3106 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-30T07:04:43-07:00 List-Id: On Monday, 30 July 2012 10:20:48 UTC+1, Georg Bauhaus wrote: > On 30.07.12 08:31, Jacob Sparre Andersen wrote: > > > robin.vowel writes: > > > > > >> On Monday, 16 July 2012 04:40:08 UTC+10, Keean Schupke wrote: > > > > > >>> The Monte-Carlo simulator I am working on is now performing better in > > >>> Ada than in C++ using profile-guided compilation (57k simulations per > > >>> second for Ada vs 56k simulations per second for C++). > > >> > > >> One part in 59 is not a significant difference. > > > > > > That depends on the variance. But reporting performance numbers without > > > the corresponding variance/standard deviation is very bad style. > > > > When I see fluctuations, and the system is otherwise idle, > > I'll typically assume that there is something random going on > > in the program or in its run-time support system, or that > > some contemporary CPU lets its cores run at different > > speed without me knowing a way to influence that (by, e.g., > > asking for a constant number of ins per sec that would not > > create too much heat (that would force fewer ins per sec)). > > Because otherwise, how could the sequence of instructions > > create fluctuations if it is not self-modifying? > > > > In this case, the inputs seem of fixed size, tailored to > > the caches' sizes in particular, so I'll assume that the results > > show that it is not universally true that equivalent programs > > written in Ada or C-17 cannot be as fast as the other. I agree with this. If you want more accuracy can write a kernel module to run the timed critical code without interrupts. Cheers, Keean.