This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance comparison


On Mon, 29 Jul 2002, 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]