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: Van Nguyen <nguyenv at cisco dot com>
- Subject: Re: gcj performance on Solaris 2.6
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Wed, 25 Jul 2001 20:35:53 -0400 (EDT)
- cc: java at gcc dot gnu dot org
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