pre-compiled, fast code
Posted Feb 10, 2006 13:52 UTC (Fri) by man_ls
In reply to: pre-compiled, fast code
Parent article: A look at GCJ 4.1
I also did some benchmarks some time ago (may 2004). The results are here (in Spanish, the site is under maintenance right now); I will quote some of them here. Code was inserted in a loop and repeated 10^9 times, except the last loop which had 2*10^5 iterations.
results for null benchmark
results for add int benchmark
results for add float benchmark
results for add double benchmark
results for method call benchmark
results for create object benchmark
results for append string benchmark, 1/5000
As you can see, arithmetic computations and method calls were much faster in gcj; object creation was slower. It would be interesting to repeat the tests again, with newer versions of both Sun's JVM and GCJ. I will see if I have the code lying around.
to post comments)