This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj slower than JVM on RedHat/s390?
- From: Tom Tromey <tromey at redhat dot com>
- To: "Andy Faibishenko" <AFAIBIS at transunion dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: 02 Apr 2003 10:26:46 -0700
- Subject: Re: gcj slower than JVM on RedHat/s390?
- References: <se8ab8fe.071@tu_asynch_1.tuc.com>
- Reply-to: tromey at redhat dot com
>>>>> "Andy" == Andy Faibishenko <AFAIBIS at transunion dot com> writes:
Andy> I have a small test program which I use as a benchmarking tool.
Andy> It doesn't use threads/jdbc/etc.. - i.e. plain vanilla java
Andy> code. When I compiled it with GCJ I was surprised to find that
Andy> it takes up almost TWICE as much CPU time as the JVM version (as
Andy> reported by the time command). I am trying to figure out why
Andy> this is.
Andy> Any suggestions would be greatly appreciated.
Your best bet would be to try to look at the generated assembly and
see what is happening. We'd be interested in the results.
I'm not super surprised by your finding. The IBM JIT is excellent.
Also, we haven't put a lot of time into optimizations. There are
still improvements we could make...
Tom