Irrlicht3d.org
::
Blog
|
About Me
|
Twitter
Add comment for
C++ vs. Java 1.6 - A fair Benchmark
Posted by:
Enter the missing letter in: "?nternational"
Text:
[quote][b]java protagonist[/b] wrote: Well nice figures. Thanks for that! But I have to add that though being very accurate and more fair than other tests I saw already - this is only half the truth again. I would admit that it is correct to say java is slower than c++ when it comes to primitve datatypes and optimizing nested loops but there are real objects also where the numbers may change somewhat. In fact it will depend upon the tasks. By the way: the server vm is used often on servers's - that is what it is optimzed for. The client VM is faster for running on machines using swing ui. Would be interesting to do some benchmerks to see what happens if the server vm is to be tested with jirr - the java binding of irrlicht. To make it short: the server vm is ahead of the client vm by some frames (1-3%) in the tech demo (running java 6) when using default values - though it is possible to tune the client vm to reach even higher numbers. I just was asthonished to see a decrease within the fibonacci test duration by roughly 20% by using the server vm whereas the nested loops were signifcant slower. Also please note that java is limiting its maximum memory usage to 128MB by default: -Xmx256m (or any higher number) will increase that ... There is also a switch for the initial heapsize: -Xms. http://performance.netbeans.org/howto/jvmswitches/index.html lists some more paramters though with every new java version there seem to be more flags - please ask sun for any hidden ones ;) PS: Do not blame java for being slow on the client when it is the programmer's fault. The swing ui is somewhat critical to running cpu intensive tasks without launching such a task in a separate thread. That will stop rendering of the gui until the main task returns. And guess what several coders are hacking in ...[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons