Performance comparison
Jeff Sturm
jsturm@one-point.com
Mon Jul 29 07:56:00 GMT 2002
On 2002年7月29日, Norman Hendrich wrote:
> after I got my simulation framework to compile and run under gcj
> (in non-GUI mode), you might be interested in the first results.
Thanks. What version of gcj did you try?
> I suspect that gcj is possibly just missing to inline one or two
> critical functions. Overall performance is quite good. The
> interpreter works fine but has some headroom for improvements :-)
When I benchmark "real" applications I often find the results are
dominated by object allocation/collection times. I haven't seen any
convincing improvement from inlining (perhaps because the RTL inliner
never really worked that well anyway).
> Any other compiler options I should try?
-O2 is worth a try; -O3 performs more optimizations but sometimes worsens
overall performance due to code bloat.
-static could be interesting.
Jeff
More information about the Java
mailing list