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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: Request for comments on simple Ada program Date: Wed, 16 Nov 2005 18:05:57 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1132079385.862345.261290@g49g2000cwa.googlegroups.com> <1132152363.037823.129410@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: host86-131-218-134.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com 1132164357 24286 86.131.218.134 (16 Nov 2005 18:05:57 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Wed, 16 Nov 2005 18:05:57 +0000 (UTC) In-Reply-To: <1132152363.037823.129410@g43g2000cwa.googlegroups.com> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Xref: g2news1.google.com comp.lang.ada:6433 Date: 2005-11-16T18:05:57+00:00 List-Id: jimmaureenrogers@worldnet.att.net wrote: > My timings were done on a similar program which can be found at > http://shootout.alioth.debian.org/benchmark.php?test=nsieve&lang=gnat&id=0 > > My home system has an AMD 64 3400+ processor with 512 Mb L2 cache. > I ran my tests using Win XP Service Pack 1. > > The program takes input from the command line and calculates 3 > different values of Upper. It simply reports the number of primes > calculated during the run. The output for a command line value > of '9' is: > > PROGRAM OUTPUT > ============== > Primes up to 5120000 356244 > Primes up to 2560000 187134 > Primes up to 1280000 98610 > > Jim Rogers Have you tried running with "-O2" instead of "-O3"? Apparently, "-O3" can cause some seemingly "perverse" effects. Cheers -- Martin