Re: Gcj binaries performance (arm-linux)

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.