This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj performance on Solaris 2.6
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: gcj performance on Solaris 2.6
- From: Van Nguyen <v_b_nguyen at hotmail dot com>
- Date: Wed, 25 Jul 2001 21:58:00 -0700
- CC: Van Nguyen <nguyenv at cisco dot com>, java at gcc dot gnu dot org
- References: <Pine.LNX.4.10.10107252025390.29330-100000@mars.deadcafe.org>
Hi Jeff,
My problem was I didn't realize I can use the same optimization options on gcj.
So it was run without any optimizations. I tried the optimizers you used, and
got 25400 iterations out of Sieve. And it beats Java Hotspot.
Thanks for the reply.
Van
Jeff Sturm wrote:
> On Wed, 25 Jul 2001, Van Nguyen wrote:
> > I followed the installation instructions for gcj 3.0. Then run a few Java
> > benchmarks on gcj, and compared them to the results I got from using Sun
> > JDK 1.3. gcj is considerably slower than JDK 1.3. For example, running
> > Sieve on java 1.3 on Sieve, I got around 18600 iterations per 10 seconds.
> > gcj gave me 3200 iterations.
>
> I don't see that, with the Sieve.java I have:
>
> $ gcj -O3 -funroll-loops Sieve.java --main=Sieve -o sieve
> $ ./sieve
> Running Sieve benchmark.
> This will take about 10 seconds.
> 25063 iterations in 10.0 seconds
> Sieve score = 2506
>
> $ javac Sieve.java
> $ java Sieve
> Running Sieve benchmark.
> This will take about 10 seconds.
> 13627 iterations in 10.0 seconds
> Sieve score = 1363
>
> However I am comparing to JDK 1.2.2 on Solaris 7. What optimizer flags
> did you try?
>
> > I used the Sieve program from ftp://gonzalez.cyberus.ca/pub/Linux/java/,
>
> This host is unreachable for me. You get get the one I use at:
>
> http://www.one-point.com/~jsturm/Sieve.java
>
> Jeff