Just wanted to let you know that a very thorough benchmark is available on http://www.windevnet.com/wdn/webextra/2003/0313/ (You have to register for free to gain access).
It compares language features and a good deal of library functions. Despite the author’s c++ / windows background it seems as if he tried to do a fair benchmark (if possible at all).
In the outcome it doesn’t look too good for java. The author shows that c++ can be fastest if you use intel c++ and are willing to choose whatever library is fastest for the task at hand (or write your own function) - which is what we all knew before. But the comparison between c# and java shows some deficies in java’s runtime regarding recursive method calls, float to int conversion, memory allocation and removing of bounds checks for array access.
Nevertheless there are some good points for java like exception handling and string comparisons.
Eagerly waiting for your opinions?
They’re not stupid. I use java, for the most part, because there is so much good help out there and it is mostly cross platform… write once, test everywhere. I know the idea behind .net is that MS opened the runtime so that anyone can implement it, but you know that it will never run as well as it does on any platform other than windows. Also, machines are getting faster and faster everyday. I’ve seen some pretty impressive programs and games written in java. If a few cycles are being lost to c, I guess I just dont really care.