The "complaints" that "Java is slow" have been inaccurate since the release of the 1.4 JVMs ages ago, but will never die because there are too many people who have vested interest in seeing the end of Java (not the least of which is a good portion of the open source zealots).
Strangely those same people do NOT have a mantra that "Ruby is slow" or "Python is slow" despite both being an order of magnitude slower than is Java (ironically it has been found that the latest version of JRuby is far faster than its C based counterpart).
It's quite possible to write extremely performant applications in Java, applications that in many cases outperform their counterparts written in C or especially C++.
But it's also quite possible to write tests that are rigged to show C++ as heavily outperforming Java.
I've seen some tests that were so clearly rigged it was silly that anyone fell for them at all.
Make it run for a very short period (so the JVM startup time makes up a significant portion of the runtime, a time cost native compiled applications don't have), use highly optimised math modules written in Assembler for the C++ program, but not the equivalent modules for the Java program, then deliberately select to "test" only those parts of the language where you know Java is relatively slow (goniometric functions mostly).
No wonder Java comes out low in such rigged "tests", but that's exactly the type of "test" that these people do.
And they do it deliberately because of their anti-Java agenda, an agenda that for many of them will not change now that they can mess around with and destroy the language.
In fact that's what I fear will happen, Java haters releasing deliberately broken versions and calling them Java, releasing them in such a way that the average user won't notice the difference with the official release but encounter problems whenever he tries to run a Java application or applet, and blames Sun (and Java in general) for that failure.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Java is plenty fast. It's people who have an anti-Java agenda that say otherwise, using data a decade old (when it was true) and exquisitely crafted "tests" to make their point.
In practice Java is quite fast. If it weren't we wouldn't need to build in a deliberate delay in our core Java applications in order to prevent the data from flowing faster than the hardware can handle...
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337