This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Gcj binaries performance (arm-linux)
- From: Andrew Haley <aph at redhat dot com>
- To: ffileppo <ffileppo at libero dot it>
- Cc: java <java at gcc dot gnu dot org>
- Date: Mon, 28 Apr 2008 16:29:33 +0100
- Subject: Re: Gcj binaries performance (arm-linux)
- References: <K01IRR$38861DE365845EE8C71961C80BFAFC80@libero.it>
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.