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: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!u-picardie.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) Date: 07 Aug 2009 11:21:26 +0200 Organization: Jacob Sparre Andersen Sender: sparre@jspa-nykredit Message-ID: <87vdl0q8rt.fsf@jspa-nykredit.sparre-andersen.dk> References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <0c18b36c-7af0-454c-8208-9b0416111a1f@w41g2000yqb.googlegroups.com> <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> NNTP-Posting-Host: 79.138.239.46.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1249636953 26232 79.138.239.46 (7 Aug 2009 09:22:33 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 7 Aug 2009 09:22:33 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Xref: g2news2.google.com comp.lang.ada:7646 Date: 2009-08-07T11:21:26+02:00 List-Id: Georg Bauhaus wrote: > I don't know, though, whether or not exchanging one "&" for one less > Stream_IO.Write is also good when strings are larger, because of the > copying in "&", CPU cache sizes, ... I fear that it might be slower in that case. - But it may not be relevant here. > Since the test has been run in a VM on top of Vista, I don't trust > the timings that much anyway. Maybe the order of tests has an > effect, too? Does somebody have a stable Linux (or Unix) test > environment? Could you try this? 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 The program was apparently using a nearly constant 94% of the CPU resources during the whole run (except for the first few seconds). Greetings, Jacob -- "Politicians are a lot like diapers. They should be changed frequently, and for the same reasons."