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!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 25 Mar 2005 03:38:20 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada bench : count words References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 25 Mar 2005 03:38:20 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-a4tRae3LC44o+FLZ08cyQy6ZKoPrYQzIeMdkbG7YBd90PdKA2wsx95WqqOQYxcr2d4Psjkw+IdOa/iY!4PzzUrcPv/MVWny0Qpzuzu38ipjUYFQNKiOfMcJ+kxU+csS6yhviZpnbrgpBXg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:9975 Date: 2005-03-25T03:38:20-06:00 List-Id: > 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.