comp.lang.ada
 help / color / mirror / Atom feed
From: hugin777@my-deja.com
Subject: Re: Announcing JGNAT public version 1.0p
Date: 2000/04/08
Date: 2000-04-08T00:00:00+00:00	[thread overview]
Message-ID: <8cmiur$j32$1@nnrp1.deja.com> (raw)
In-Reply-To: 8ckthd$p99$1@nnrp1.deja.com

In article <8ckthd$p99$1@nnrp1.deja.com>,
  Robert Dewar <robert_dewar@my-deja.com> wrote:
> In article <8ckscp$nv7$1@nnrp1.deja.com>,
>   hugin777@my-deja.com wrote:
> > On my machine (with gcc -O3) Java is 3 times faster !!  (Due
> > to Pentium optimizations, I guess)
>
> No, most likely because you did not use the right options
> for the GNAT run, there are many peformance considerations in
> doing a comparison like this.
>
> For instance, -O3 is usually a bad idea compared to -O2,
> but likely you should unroll loops, probably you should
> suppress checks too if you are comparing with Java which
> has no arithmetic runtime checking.

OK, I tried it with "-O2 -gnatp" - same result.

If someone out there has time to find the right way to compile this, or
find out where I made an error, please educate me.

> You may also be seeing artifacts in overhead, we often find
> that primitive benchmarks like this are badly flawed.

Yes, I admit that.

> Of course the main reason for programing in Ada rather than
> Java is not efficiency, but rather that Ada is a superior
> language to Java in many respects. I would base the choice
> primarily on language requirements, unless efficiency becomes
> known to be a significant issue.

Yes. My point was that the Java Virtual Machines are quite efficient by
now. I didn't intend to say that Java-the-language is better than
Ada-the-language - the only reason for not using Ada on the JVM is that
I haven't downloaded JGNAT yet !

Regards,
   Jens Jakob Jensen.


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-04-08  0:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-28  0:00 Announcing JGNAT Professional version 1.0a Robert Dewar
2000-03-31  0:00 ` Announcing JGNAT public version 1.0p Robert Dewar
2000-04-01  0:00   ` John Merryweather Cooper
2000-04-02  0:00     ` Robert Dewar
2000-04-02  0:00       ` John Merryweather Cooper
2000-04-03  0:00         ` Robert Dewar
2000-04-02  0:00           ` John Merryweather Cooper
2000-04-03  0:00             ` Robert Dewar
2000-04-03  0:00             ` Robert Dewar
2000-04-04  0:00               ` JGNAT help puh-leeze G
2000-04-04  0:00                 ` Geoff Bull
2000-04-06  0:00                   ` G
2000-04-06  0:00                     ` Geoff Bull
2000-04-04  0:00               ` Announcing JGNAT public version 1.0p Charles Hixson
2000-04-05  0:00                 ` David Botton
2000-04-06  0:00                   ` Charles Hixson
2000-04-07  0:00                     ` hugin777
2000-04-07  0:00                       ` Pascal Obry
2000-04-07  0:00                       ` Robert Dewar
2000-04-07  0:00                         ` Ted Dennison
2000-04-08  0:00                           ` Geoff Bull
2000-04-08  0:00                         ` hugin777 [this message]
2000-04-09  0:00                           ` Optimizing flags Was: " Ken O. Burtch
2000-04-08  0:00                         ` Geoff Bull
2000-04-08  0:00                       ` Geoff Bull
2000-04-10  0:00                       ` Pascal Obry
2000-04-10  0:00                         ` hugin777
2000-04-10  0:00                           ` David Starner
2000-04-11  0:00                             ` Brian Rogoff
2000-04-11  0:00                               ` David Starner
2000-04-11  0:00                               ` Tucker Taft
2000-04-11  0:00                                 ` Brian Rogoff
2000-04-10  0:00                           ` Al Christians
2000-04-11  0:00                           ` Pascal Obry
2000-04-12  0:00                           ` Pascal Obry
2000-04-07  0:00                     ` Geoff Bull
2000-04-05  0:00                 ` Geoff Bull
2000-04-04  0:00           ` ada_95
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox