Many people here have argued that C++-code can be optimized to run many times faster than JAVA-code.
This is true, in many, if not most cases. The question is, how fast will the code run when you did not take the time to optimize the code to the fullest?
You can probably put in more optimizations in your C++ code, but how much time will it take you, and will it really be worth the effort?
Some people also remarked that this benchmark tests the OS or the libraries (IO) more then it does the language. True, but can you truly seperate them from each other?
You can choose to use a diffirent library, that you know is faster, but I think many developers will stick with what is deliverd with their programming environement. Not many developers have the time to evaluate other implementations, let alone write their own.
A third kind of remark that i read, was that you can't really stick these performance figures on the language as such, but that it are really the compiler, linker or VM that you use that do matter. The example was given that if C++ would run in a VM and JAVA would be compiled that the figures would be quite diffirent. This is true, but it is currently not the case. So, I think it is good sense to compare the languages, since each has its preferred/default strategy for being compiled/executed.
So, is C++ faster than JAVA? If you put in the extra effort of optimizing, then yes. If you don't , possibly. Is that effort justified? That depends.
At the bottom of this page http://www.belgium.be/eportal/application?origin=s earchResults.jsp&event=bea.portal.framework.intern al.refresh&pageid=contentPage&docId=6418[www.belgi um.be] there are a bunch of links to Programmers Guides, Chip contents, how to configure web servers/browsers and source code to the (Windows) middleware.
Many people here have argued that C++-code can be optimized to run many times faster than JAVA-code. This is true, in many, if not most cases. The question is, how fast will the code run when you did not take the time to optimize the code to the fullest? You can probably put in more optimizations in your C++ code, but how much time will it take you, and will it really be worth the effort? Some people also remarked that this benchmark tests the OS or the libraries (IO) more then it does the language. True, but can you truly seperate them from each other? You can choose to use a diffirent library, that you know is faster, but I think many developers will stick with what is deliverd with their programming environement. Not many developers have the time to evaluate other implementations, let alone write their own. A third kind of remark that i read, was that you can't really stick these performance figures on the language as such, but that it are really the compiler, linker or VM that you use that do matter. The example was given that if C++ would run in a VM and JAVA would be compiled that the figures would be quite diffirent. This is true, but it is currently not the case. So, I think it is good sense to compare the languages, since each has its preferred/default strategy for being compiled/executed. So, is C++ faster than JAVA? If you put in the extra effort of optimizing, then yes. If you don't , possibly. Is that effort justified? That depends.
Since many computer users don't seem to have a brain, how can you distinguish them from eachother?