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!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!irazu.switch.ch!switch.ch!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada bench : count words Date: 25 Mar 2005 07:30:58 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1111735961 2062 62.49.19.209 (25 Mar 2005 07:32:41 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 25 Mar 2005 07:32:41 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:9970 Date: 2005-03-25T07:30:58+00:00 List-Id: tmoran@acm.org writes: > Here's a simple multitasking conversion. I would appreciate it if someone > with a dual core or hyperthreaded CPU tried it out. Probably increasing > the buffer size, by lessening task interactions, would speed it up. With > multiple CPUs, the array > Counter : array(1 .. 2) of Counters; > might be increased to more tasks, also. This is a dual-processor 400 MHz Celeron running Mandrake Linux 8.2 and GNAT 5.02a1. On my ~/RMAIL file (must trim out some of that old mail!) the settled values were: 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 -- Simon Wright 100% Ada, no bugs.