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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,304c86061dc69dba X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,304c86061dc69dba X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,5cb36983754f64da X-Google-Attributes: gid103376,public X-Google-Thread: 1094ba,2746b4897cd9baa7 X-Google-Attributes: gid1094ba,public X-Google-ArrivalTime: 2004-02-12 17:39:34 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.fortran Subject: Re: Ada performance (was No call for Ada ) From: James Rogers References: <20040206174017.7E84F4C4114@lovelace.ada-france.org> <54759e7e.0402071124.322ea376@posting.google.com> <2460735.u7KiuvdgQP@linux1.krischik.com> <54759e7e.0402081525.50c7adae@posting.google.com> <54759e7e.0402091826.2847e0c@posting.google.com> <54759e7e.0402101819.95cec1d@posting.google.com> <88dc613b.0402121520.bf939f8@posting.google.com> Message-ID: Followup-To: comp.lang.ada,comp.lang.c User-Agent: Xnews/5.04.25 Date: Fri, 13 Feb 2004 01:39:34 GMT NNTP-Posting-Host: 12.73.185.71 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1076636374 12.73.185.71 (Fri, 13 Feb 2004 01:39:34 GMT) NNTP-Posting-Date: Fri, 13 Feb 2004 01:39:34 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:5511 comp.lang.c:22200 comp.lang.c++:18957 comp.lang.fortran:4924 Date: 2004-02-13T01:39:34+00:00 List-Id: msg_1825@yahoo.com (MSG) wrote in news:88dc613b.0402121520.bf939f8@posting.google.com: >> The shootout numbers I saw put vc at .07, gcc at 0.10 and GNAT at >> .20. Java was 0.73 and Perl was 34.31. >> >> I do not see how .2 is closer to .7 or 34 than it is to .1. >> >> Your mathematics seems seriously flawed. > > Only to the uninitiated :) > > To keep it simple (I'm a mathematician actually), you seem to be > giving special importance on the execution _time_ and the > _arithmetic_ average, as opposed to, say, execution _speed_ (or the > _harmonic_ average). Let's compare speeds in tasks per second using > your data: > > VC = 14.2 > GCC = 10.0 > GNAT = 5.0 > Java = 1.4 > Perl = 0.03 This is physical nonesense. Your analysis would say that Perl, which performed 300 matrix multiplications in 34.31 seconds is on the same order of speed as some language taking 28640 seconds. Which would result in a "speed" of .0003. 28640 seconds is 24 hours. You are stating that Perl has a speed closer to a language taking 24 hours to complete the task than to VC. The important relationship is the ratio between the numbers, not the absolute difference between the numbers. Given that relationship GNAT is as close to Java as it is to VC, and Java is closer to VC than it is to Perl. Jim Rogers > > Now can you see how GNAT is "closer" to both Java and Perl than even > to the "slower" of the C compilers here? :) > > > I replaced the dead Java group with comp.lang.fortran - maybe they'll > clue us in on the matrix multiplication performance issues (or at > least keep Adaists from feeding us strange explanations). > > To recap the discussion (or my understanding of it) : > > 1. GNAT, an Ada compiler, is a front end to GCC and so should use the > same "window" (i.e. local) optimizations GCC does > > 2. Arrays are unaliased in Ada (as I understood), much like in > FORTRAN, which may be beneficial in terms of performance (given that > the compiler takes advantage of this, and I believe, in case of GCC, > it does) > > 3. Ada is compiled to native code and isn't garbage collected, which > puts its execution mode in the same language group with C, C++ and > Fortran > > And yet, dispite all of these (especially (1)). GNAT did not fair as > well as GCC and G++ (I'm sure G77 would have done at least as well). > > > MSG > > P.S. BTW is the code generated by IFC as fast as G77 on modern CPUs > (P4 and Athlon)? Is it worth bothering with IFC on benchmarks, etc.?