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,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Attributes: gid103376,gid115aec,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail From: "jimmaureenrogers@worldnet.att.net" Newsgroups: comp.lang.ada,comp.realtime Subject: Re: 10 rules for benchmarking (was Re: Teaching new tricks to an old dog (C++ -->Ada)) Date: 12 Mar 2005 04:54:28 -0800 Organization: http://groups.google.com Message-ID: <1110632068.840316.87970@l41g2000cwc.googlegroups.com> References: <87r7iu85lf.fsf@insalien.org><1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <112rs0bdr2aftdf@corp.supernews.com> <1inxxr988rxgg$.1w9dedak41k89.dlg@40tude.net> <112s1r0rf0o8nca@corp.supernews.com> <112sonip5v4dca6@corp.supernews.com> <112t3de6fu04f38@corp.supernews.com> <1110396477.596174.285520@o13g2000cwo.googlegroups.com> <112vb2t8eonuhed@corp.supernews.com> <1110422108.925127.54110@o13g2000cwo.googlegroups.com> <11329cb96h2p19f@corp.supernews.com> <1134l8n86c5f163@corp.supernews.com> <6UtYd.126861$Th1.29444@bgtnsc04-news.ops.worldnet.att.net> <1135iupm03cqvef@corp.supernews.com> NNTP-Posting-Host: 69.170.70.49 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1110632073 17747 127.0.0.1 (12 Mar 2005 12:54:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 12 Mar 2005 12:54:33 +0000 (UTC) In-Reply-To: <1135iupm03cqvef@corp.supernews.com> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=69.170.70.49; posting-account=SqOfxAwAAAAkL81YAPGH1JdBwpUXw9ZG Xref: g2news1.google.com comp.lang.ada:9226 comp.realtime:1358 Date: 2005-03-12T04:54:28-08:00 List-Id: CTips wrote: > Jim Rogers wrote: > > > > > > I have created another version and downloaded the latest cygwin to > > try to make the system as similar as possible. I have translated your > > example into Ada for another increase in similarity. > > > > compiled with -gnatwu -gnato -I > > > > Using the cygwin time command I got a total run-time of 2.1s. > > With -O2 I get 1.1s > > > > My speed appears to be very similar to yours. > > Good! > > Did you run the C code as well by any chance? > > BTW: the numbers *should* be the pretty close to identical. The > algorithms are the same, Ada does not need to kick in any of its > run-time checks, and the two backends are the same. > > About the only room for difference is if the two flags (-O2) kick off > different sets of optimizations for Ada and C. One other small difference is that GNAT 3.15p uses a much older version of the gcc backend. That, along with the differences in cpus, may easily account for differences. Jim Rogers