Re: Gcj binaries performance (arm-linux)

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
ffileppo wrote:
>>> 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.

aph@debian:~$ gij MyPanel    
Test "Bubble Sort" (Num loop: 100)
First loop time: 543
Total time elapsed: 54187

aph@debian:~$ /mnt/zebedee/aph/arm/icedtea6/openjdk-ecj/control/build/linux-arm/j2sdk-image/bin/java MyPanel
Test "Bubble Sort" (Num loop: 100)
First loop time: 908
Total time elapsed: 90448

aph@debian:~$  /home/aph/gcc-4.3.0-RC-20080301-install/bin/gcj MyPanel.class --main=MyPanel
aph@debian:~$ ./a.out 
Test "Bubble Sort" (Num loop: 100)
First loop time: 400
Total time elapsed: 40046

aph@debian:~$  /home/aph/gcc-4.3.0-RC-20080301-install/bin/gcj MyPanel.class -O --main=MyPanel
aph@debian:~$ ./a.out 
Test "Bubble Sort" (Num loop: 100)
First loop time: 22
Total time elapsed: 2197

aph@debian:~$ /home/aph/gcc-4.3.0-RC-20080301-install/bin/gcj MyPanel.class -O2 --main=MyPanel
aph@debian:~$ ./a.out 
Test "Bubble Sort" (Num loop: 100)
First loop time: 20
Total time elapsed: 1943

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.