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!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: Ada bench : word frequency References: From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Apr 2005 04:04:07 GMT NNTP-Posting-Host: 24.149.57.125 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1114661047 24.149.57.125 (Wed, 27 Apr 2005 21:04:07 PDT) NNTP-Posting-Date: Wed, 27 Apr 2005 21:04:07 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:10772 Date: 2005-04-28T04:04:07+00:00 List-Id: Marius Amado Alves writes: > Here's a shot at the word frequency benchmark... > > The program does not use any external data structures library. I have updated the ai302/wordfreq example so that it's now in closer harmony with what's specified at the shootout page: The first version is implemented using a hashed map. In order to demonstrate features of the Ada 2005 container library, I have also provided a second version, implemented using a hashed set: I was mostly interested in seeing how easily I could solve the wordfreq problem using the standard container library, so I haven't attempted any kind of optimization. But I assume both versions will have respectable performance, compared to other entries in the shootout. Regards, Matt