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:
>>> 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.


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