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!news3.google.com!news.glorb.com!news.addix.net!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.news.jippii.net!feeder1.news.jippii.net!reader1.news.jippii.net!53ab2750!not-for-mail From: Tapio Kelloniemi Subject: Re: Ada bench : count words References: Newsgroups: comp.lang.ada Message-ID: Date: Fri, 25 Mar 2005 16:20:28 GMT NNTP-Posting-Host: 217.30.176.187 X-Complaints-To: newsmaster@saunalahti.com X-Trace: reader1.news.jippii.net 1111767628 217.30.176.187 (Fri, 25 Mar 2005 18:20:28 EET) NNTP-Posting-Date: Fri, 25 Mar 2005 18:20:28 EET Organization: Saunalahti Customer Xref: g2news1.google.com comp.lang.ada:9986 Date: 2005-03-25T16:20:28+00:00 List-Id: tmoran@acm.org wrote: >> with one task: >> >> 417604 1638075 19453698 >> took 1.030899000 >> >> with 2 tasks: >> >> 417604 1638075 19453698 >> took 0.666758000 >> >> with 3 tasks: >> >> 417604 1638075 19453698 >> took 0.637034000 > Excellent! By my calculations then, Dmitry's program (with >Ada.Streams.Read substituted for Gnat.OS.Lib) should run on your machine >in 0.746 seconds and the original C should take 0.883 seconds. So Ada is >about 40% faster than C on the word count shootout. It's too late at >night for me to make Dmitry's multitasking right now, but that would be >simple and ought to be nearly 80% faster than C. Those would be nice >numbers to post to the shootout page. Except that shootout benchmarks are run on a single CPU. I don't know whether it is hyperthreaded or not. -- Tapio