gcj performance on Solaris 2.6
Van Nguyen
v_b_nguyen@hotmail.com
Wed Jul 25 21:58:00 GMT 2001
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 2001年7月25日, 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
More information about the Java
mailing list