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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Thread: 108717,a7c8692cac750b5e X-Google-Attributes: gid103376,gid115aec,gidf43e6,gid108717,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!blackbush.cw.net!cw.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Sun, 13 Mar 2005 02:18:51 +0100 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.realtime,comp.software-eng,comp.programming Subject: Re: 10 rules for benchmarking (was Re: Teaching new tricks to an old dog (C++ -->Ada)) References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <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> <113394jjvppao64@corp.supernews.com> <42329704$0$1096$9b4e6d93@newsread2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <423394c2$0$1086$9b4e6d93@newsread2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 13 Mar 2005 02:17:54 MET NNTP-Posting-Host: cd62c04c.newsread2.arcor-online.net X-Trace: DXC=4;]>dlk6_3SWlBlPAT_ljXQ5U85hF6f;TjW\KbG]kaMXliQbn6H@_EYHk_0SER Willem wrote: > Georg wrote: > ) Anyway, here goes. > ) The starred columns show seconds with checks turned off > ) (in both languages). > ) > ) Your program has, at C module level, > > Would you mind quoting exactly which C program you ran the tests with ? > And maybe also which Ada program ? The C program is that of CTips in <1132e5g2cor3oe2@corp.supernews.com> A constant R is #defined for each row in the table, replacing the 10000 in the for loop. The checks are as described in my post. The Ada programs for setup_perm and do_perm are the same as in the package body Perms in <42307820$0$26539$9b4e6d93@newsread4.arcor-online.net>. (Actually there are two Ada programs driving the procedures, one is using constrained arrays allocated at library level, like he C program. The other is using dynamically allocated arrays using an unconstrained array type. So the compiler will add bounds checking code.) Georg