Quote Originally Posted by directhex View Post
Okay. Here's one example, off the first page of "Java beats C++ benchmark" on Google. http://stackoverflow.com/questions/5...my-simple-test

There are lots of them.

A JITter can be very fast, y'know.
this exactly prove my point, that is a horribly written C++ code running on VC that by default have many optimizations turned off like SIMD <--- aka that code is using x87 LOL

take that code unroll it, add SSE/AVX, check the types, properly use templates and atomics[c++11], optimize the memory handling and use ICC or GCC with at least -O2 -march=native and -msse2 and compare it to java again