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,FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!b14g2000yqd.googlegroups.com!not-for-mail From: jonathan Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) Date: Sun, 2 Aug 2009 09:42:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2bdfd9f7-36a0-4826-8ef3-fa014821a422@b14g2000yqd.googlegroups.com> References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <3f9f9e21-e088-4fbe-baac-dd43fdf6b911@r38g2000yqn.googlegroups.com> <4a757b0d$0$31328$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 143.117.23.126 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1249231338 10589 127.0.0.1 (2 Aug 2009 16:42:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 2 Aug 2009 16:42:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b14g2000yqd.googlegroups.com; posting-host=143.117.23.126; posting-account=Jzt5lQoAAAB4PhTgRLOPGuTLd_K1LY-C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.12) Gecko/2009072220 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7529 Date: 2009-08-02T09:42:18-07:00 List-Id: On Aug 2, 5:00=A0pm, jonathan wrote: > The new version worked like a charm. =A0I checked the web page, and > the output is correct. =A0Your latest version gave an additional > 70% speedup on my machine, so: > > =A0 =A0 =A0time ./knucleotide < fasta25.dat =A0 =A0# 25 =A0Meg data file > > ran in 4.2 seconds (fastest result), and > > =A0 =A0 =A0time ./knucleotide < fasta250.dat =A0 # 250 Meg data file > > ran in =A043 seconds. =A0I used > > =A0 =A0gnatmake -gnatnp -O3 -march=3Dnative knucleotide > And I neglected to say that the timings above are wallclock times. The several tasks ran in parallel on the 4 cores - the actual CPU time accumulated over the several cores was than twice the 43 seconds. If this is not allowed by the rules (single core supposedly) then old version is faster, because it has no tasking overhead. On the other hand, some of the other programs seem to be threaded. j.