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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-05 07:15:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: Ideas for Ada 200X From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED41344.7090105@spam.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> <6vWcnTWjF83bD0qjXTWcpA@gbronline.com> <3EDCBDF4.1050900@attbi.com> <3EDEC9A7.9050602@attbi.com> Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Thu, 05 Jun 2003 15:14:28 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1054822534 80.195.75.181 (Thu, 05 Jun 2003 14:15:34 GMT) NNTP-Posting-Date: Thu, 05 Jun 2003 14:15:34 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:38681 Date: 2003-06-05T15:14:28+01:00 List-Id: On 5/6/03 05:40, in article 3EDEC9A7.9050602@attbi.com, "Robert I. Eachus" wrote: > E:\Ada\Test\New Folder>test_matrix_add > test_matrix_add > Initialize Generators. > Initialize Integer Matricies. > Initialize Float Matrices. > Initialization Completed. > Integer "+" operator, checks on, required 320.349 milliseconds. > Integer Add operator, checks on, required 221.992 milliseconds. > Integer "+" operator, checks off, required 262.464 milliseconds. > Integer Add operator, checks off, required 170.612 milliseconds. > Float "+" operator, checks on, required 222.519 milliseconds. > Float Add operator, checks on, required 150.401 milliseconds. > Float "+" operator, checks off, required 222.297 milliseconds. > Float Add operator, checks off, required 171.129 milliseconds. > All Done. > I got the following typical results on my puny Mac iBook (500Mhz G3 PPC) running GNAT 5.00w under Mac OS X 10.2.6: wf% gnatmake -s -gnato -O3 -funroll-loops test_matrix_add gcc -c -gnato -O3 -funroll-loops test_matrix_add.adb gnatbind -x test_matrix_add.ali gnatlink test_matrix_add.ali wf% time ./test_matrix_add Initialize Generators. Initialize Integer Matricies. Initialize Float Matrices. Initialization Completed. Integer "+" operator, checks on, required 699.236 milliseconds. Integer Add operator, checks on, required 246.665 milliseconds. Integer "+" operator, checks off, required 251.800 milliseconds. Integer Add operator, checks off, required 240.967 milliseconds. Float "+" operator, checks on, required 256.730 milliseconds. Float Add operator, checks on, required 236.594 milliseconds. Float "+" operator, checks off, required 259.498 milliseconds. Float Add operator, checks off, required 233.774 milliseconds. All Done. 5.740u 0.290s 0:10.02 60.1% 0+0k 0+2io 0pf+0w Integer "+" is 2.8 times slower than Add with checks on, but essentially the same with checks off. Float operations are essentially the same whether checks are on or off. It is clear that no claim of inevitable gross inefficiency for "+" can be supported. -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")