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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad4585f2971e47c5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!216.196.110.142.MISMATCH!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 20 Feb 2011 13:59:14 -0600 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Need some light on using Ada or not Date: Sun, 20 Feb 2011 20:02:04 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <4d5ef836$0$23753$14726298@news.sunsite.dk> <7ibvl6tn4os3njo3p4kek9kop44nke3n7t@4ax.com> <4d5fd57d$0$6992$9b4e6d93@newsspool4.arcor-online.net> <6a387d75-a319-4584-8f26-72dee661e1ba@l11g2000yqb.googlegroups.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-KRwAI/Tph+PqyaZuboyL3Nv0IqUGFZV1eLBNGLnpXyShjRyHPrWBut23eD23aHcz4WL1n+HcxPnwrXy!rafujMuwJssdXmt88AKBI1RJu7bLz2g0hImrKyX1ZUGjCiObVAlmqUGds0Ady6ntUsLa1XQ3fhVI!kUk= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com 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.40 X-Original-Bytes: 3220 Xref: g2news2.google.com comp.lang.ada:18465 Date: 2011-02-20T20:02:04+00:00 List-Id: On Sun, 20 Feb 2011 08:42:06 -0800 (PST), jonathan wrote: > >> On Sat, 19 Feb 2011 15:36:45 +0100, Georg Bauhaus >> >> C #includes , that is, it exercises the Apache memory pool, >> not what is available with plain C. >> >> C++ #includes a similar thing from the Boost libraries. > > >On Feb 19, 6:25 pm, Brian Drummond >wrote: >> >> even though you are not allowed to supply your own pool. >> Possibly harsh, but I can see the logic behind it. > >Free lists are forbidden also. > >The rules could not be clearer: > > Please don't implement your own custom memory pool or > free list. I read the rule differently; and here's my understanding of the logic behind it: Use any memory pool and/or free list you like, as long as they are publicly available (e.g. from Boost, Apache, perhaps the Booch Ada Components etc) but don't create one specifically tuned for the benchmark. Thus it encourages quality of not only language and compiler implementation, but also libraries and other re-usable components. Which is realistic, because they are part of the package you would consider when choosing a language for a project. >A few more observations. > >First a minor point: On my machine I can make the Ada version the >same speed as the (single core) C#1 and the C++#2 (about 10% >faster) with a small change (I placed the patch at the >end of post). So, like for like, Ada has the same performance... >So here's the puzzle. How do the C#7 and C++#6 programs >(single core) run so much faster. > >The C++#6 uses the Boost library's "object_pool.hpp", so I >suggest we go straight to the magical source code: > >http://sourceforge.net/projects/boost/files/boost/1.45.0/ ... but the available C/C++ libraries are more highly tuned (or cheat...)? - Brian