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,8de7eedad50552f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!nntp-peering.plus.net!ptn-nntp-feeder01.plus.net!ptn-nntp-spool02.plus.net!ptn-nntp-reader01.plus.net!not-for-mail User-Agent: Microsoft-Entourage/10.1.6.040913.0 Date: Mon, 21 Mar 2005 15:18:10 +0000 Subject: Re: Ada bench From: "(see below)" Newsgroups: comp.lang.ada Message-ID: References: <87vf7n5njs.fsf@code-hal.de> <87u0n6mzas.fsf@code-hal.de> <2huslr9uto15$.nbw7z2uaceua.dlg@40tude.net> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Organization: Customer of PlusNet plc (http://www.plus.net) NNTP-Posting-Host: e42355a2.ptn-nntp-reader01.plus.net X-Trace: DXC=mnWHFFVYZ6Vf2ScFigd3Y`7Rb;NYZmCHj47lfEeLPAa3J]X2IEP6XHQO79\IGfERDVJn48@[8GhaLQiNFL\:m3;ElMnkN?\1ONMBdjLME@G`73MbjEL X-Complaints-To: abuse@plus.net Xref: g2news1.google.com comp.lang.ada:9673 Date: 2005-03-21T15:18:10+00:00 List-Id: On 21/3/05 3:54 am, in article opsnyydgl25afhvo@localhost, "Ed Falis" wrote: > You Me? > neglected two things: > 1. suppress checks: -gnatp I have tried it with "pragma Suppress(All_Checks);" and it makes no difference to the cpu time, as I expected. This test is dominated by the (poor) performance of Ada.Text_IO. > 2. Use the end of file function instead of the exception. As I said: > SumCol4 is not only the fastest, with a MEAN of 0m2.320s, > I think it is the most accurate transcription of the Icon program, > since Icon is an event-driven (~= exception-driven) string language. We have an Icon program as a model from Shootout, so I think that is fair. In any event, the version using End_Of_File takes 2.82s, 0.5s faster for 1_000_000 lines of input. -- Bill