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: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!bnewspeer01.bru.ops.eu.uu.net!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 09 Aug 2009 21:17:40 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <87fxc9e0mg.fsf@nbi.dk> <4a76cd4f$0$31329$9b4e6d93@newsspool4.arcor-online.net> <87bpmxdqfo.fsf@nbi.dk> <2bae762e-0d8a-4389-843a-466e87f59fd1@a37g2000prf.googlegroups.com> <4a786b15$0$30230$9b4e6d93@newsspool1.arcor-online.net> <67e76046-62d4-4c0e-bdd8-8d00cdf93bca@l35g2000pra.googlegroups.com> <4a79f712$0$31874$9b4e6d93@newsspool3.arcor-online.net> <7a5aea9c-1ade-4d73-98ef-08d226823161@z31g2000yqd.googlegroups.com> <4a7a0826$0$31862$9b4e6d93@newsspool3.arcor-online.net> <4a7a96a2$0$31867$9b4e6d93@newsspool3.arcor-online.net> <4a7b4daa$0$31333$9b4e6d93@newsspool4.arcor-online.net> <4a7bebaa$0$30224$9b4e6d93@newsspool1.arcor-online.net> <87vdl0q8rt.fsf@jspa-nykredit.sparre-andersen.dk> In-Reply-To: <87vdl0q8rt.fsf@jspa-nykredit.sparre-andersen.dk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a7f20d3$0$31344$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Aug 2009 21:17:40 CEST NNTP-Posting-Host: f6cc4513.newsspool4.arcor-online.net X-Trace: DXC=2QZ=XZVN Jacob Sparre Andersen wrote: [printing via Stream_IO] > I tried on my Debian/stable workstation (made the program repeat the > test twice in case of initialisation effects): > > Print_Old, SHORT_STRINGS: 12.368589000 > Print_Old, MEDIUM_STRINGS: 1.143411000 > Print_Old, LONG_STRINGS: 0.553761000 > Print, SHORT_STRINGS: 13.874468000 > Print, MEDIUM_STRINGS: 3.012395000 > Print, LONG_STRINGS: 2.274855000 > Print_Old, SHORT_STRINGS: 12.254596000 > Print_Old, MEDIUM_STRINGS: 1.140442000 > Print_Old, LONG_STRINGS: 0.573983000 > Print, SHORT_STRINGS: 13.666659000 > Print, MEDIUM_STRINGS: 3.014188000 > Print, LONG_STRINGS: 2.286064000 Thanks. (I have in the meantime found similar results on Mac OS X, BTW.) Possible conclusion: for long strings, copying dominates and should be avoided, call Stream_IO.Write for the text to be appended ...?