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: Gcj binaries performance (arm-linux)


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.


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