This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Gcj binaries performance (arm-linux)
- From: Andrew Haley <aph at redhat dot com>
- To: ffileppo <ffileppo at libero dot it>
- Cc: java <java at gcc dot gnu dot org>
- Date: Mon, 28 Apr 2008 15:37:56 +0100
- Subject: Re: Gcj binaries performance (arm-linux)
- References: <K01B71$7BA10A3AA8A99CE0BF4FB8D01DC8FFAB@libero.it>
ffileppo wrote:
> Hi all,
>
> I'm doing some tests to compare gcj performance vs some java virtual machine (I'm using JamVM at the moment).
>
> My target is a PXA270 with 128MB of Ram.
> The program I use to test performance is a simple BubbleSort (order an array of 1000 elements for 100 times).
>
> Here are the result I am getting:
>
> Binary compiled with arm-linux-gcj: 45720 ms
> Virtual machine (JamVM): 40500 ms
>
> I'm quite surprised of this result, I thought that a binary compiled with gcj would be much faster than a java virtual machine.
So would I.
> I've also tried to pass some options (e.g. -march=, -mtune, -mcpu...) when compiling with gcj but results are not changing.
>
> Any idea to improve performance?
Without seeing your code, it's impossible to say. I don't want
to speculate.
Andrew.