Gcj binaries performance (arm-linux)

Andrew Haley aph@redhat.com
Mon Apr 28 15:29:00 GMT 2008


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /