Re: Article on Java 1.4.2 vs C++ speed
Re: Article on Java 1.4.2 vs C++ speed
- Subject: Re: Article on Java 1.4.2 vs C++ speed
- From: Michael Parlee <email@hidden>
- Date: Fri, 18 Jun 2004 18:07:08 -0700
It does. I think the client vm string is just informational. Try
compiling one of the benchmark apps from the article. You'll see that
the -server option results in the benchmark running in about half the
time that it does under the client vm.
I'm still not sold on his results though. Under OS X g++ compiled
native code runs about twice as fast as even the -server vm. I suppose
the Linux vm could be much better optimized than Apple's, but faster
than compiled c++? I don't buy it :-)
Mike
On Jun 18, 2004, at 2:47 PM, Tarun Reddy wrote:
Couple points:
Generally client VM implementation is quicker to start up and uses
less memory, very good for client gui applications. However if you
have Eclipse up all day.... maybe the speed improvement would be
beneficial. However...
Most importantly, Apple doesn't seem to have a server JVM.
try
java -server -version
Notice that the Client VM string is shown. If this is wrong, someone
please tell me!
Tarun
On Jun 17, 2004, at 10:09 PM, Kieran Kelleher wrote:
FYI,
Got this article today in JDJ newsletter. May be of interest.
http://sys-con.com/story/?storyid=45250&DE=1
I did not realize that there are client and server jvm's to choose
from when java apps are launched and that the server JVM is the
fastest jvm, so I checked the OS X Server jvm.cfg file in
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib
to find that the server jvm (listed first in the file is the default
for java apps on OS X Server which is good, HOWEVER in the same
location on my regular OS X dev machine the default jvm is the SLOWER
client jvm.
You can easily change this on your OS X client (not Server) by
replacing jvm.cfg with a copy of server_jvm.cfg (which can be found
in the same directory). This might make a difference to the
performance of java applications such as Eclipse for those who are
interested. If you find that it does, let us know.
I hope this is of interest to the list
-Kieran
________________________________________________________________
Config = OS X 10.3.4 / Java 1.4.2 / WO 5.2.3 / XCode v1.2 / MySQL
4.0.20 / Connector-J 3.0.11
Blog: http://webobjects.webhop.org/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.