gcj performance on Solaris 2.6

Jeff Sturm jsturm@one-point.com
Wed Jul 25 17:26:00 GMT 2001


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

AltStyle によって変換されたページ (->オリジナル) /