This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23283] Sun's JIT faster than gcc
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 8 Aug 2005 13:32:30 -0000
- Subject: [Bug java/23283] Sun's JIT faster than gcc
- References: <20050808100453.23283.netzberg@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-08 13:32 -------
Actually for me Sun's java and GCJ take about the same at the default settings (well for GCJ compiled at
-O3).
Now if I change Sun's java to use the server tuned JIT, Sun's java is 2 seconds while GCJ is still 4.5 or so.
timecopper:~>time ./a.out
4999358.6586720785
4.900u 0.070s 0:06.12 81.2% 0+0k 0+0io 148pf+0w
copper:~>javac X.java
java Xcopper:~>java X
5001132.020866861
copper:~>time java X
5000974.98115474
4.791u 0.037s 0:04.88 98.7% 0+0k 0+0io 0pf+0w
copper:~>time java -server X
5000248.791328681
3.290u 0.061s 0:03.91 85.6% 0+0k 0+0io 54pf+0w
This with keeping and printing out the return value for nextDouble.
This might be startup/shut down time taking into account.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Java interpreter |Sun's JIT faster than gcc
|significantly faster than |
|gcc?! |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23283