This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Performance comparison
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Norman Hendrich <hendrich at informatik dot uni-hamburg dot de>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 29 Jul 2002 10:56:09 -0400 (EDT)
- Subject: 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