I received a few comments on my
previous blog entry saying the results were bogus since I used an old compiler. I quickly found another test system running Suse SLES 9 U2 with gcc 3.3.3 and repeated the test. If I get around to installing the latest Visual Studio I'll repeat the test there as well. The JVM versions are different as I wanted to quickly post the results.
Guess what, the results are a lot better! I ran this several times and its quite repeatable. I appreciate comments so please let me know what your thoughts. Especially if there are issues with the choice of gcc 3.3.3.
The system under test was a 2 x 3.0Ghz Intel Xeon MP System (4-core) running Suse SLES 9 U2 and gcc 3.3.3. The C code was compiled with full optimization as shown by the Makefile in the SciMark source package. This time
no tuning parameters were used for either 5.0_08 or 6.0 b83.
Here's some output from /proc/cpuinfo:
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.00GHz
For background here's the skinny on
SciMark2. Scimark2 is a set of simple numerical kernels and its performance is directly related to the performance and quality of the generated code. The tests are single threaded and have little to no garbage collection overhead. In short, a great set of applications to compare statically compiled C code and dynamically compiled Java.
This time Java is 35% faster than C.

Here's a breakdown of the subtests. C is only ahead on Sparse MatMult by a small margin.

Any one interested to see how the other JVM vendors look? Can JRockit or IBM beat C?
I don't get similar results at all. While Java is faster on some subtests, C is overall faster. On an 8-core v490 (four 1.35GHz USIV chips) running Solaris 10 FCS, I get these results:
with S1S11:
With Java 1.5.0_07
With Mustang b86:
Posted by Derek Morr on June 09, 2006 at 04:39 PM EDT #
Posted by Surya on June 09, 2006 at 05:40 PM EDT #
Posted by Mikael Gueck on June 09, 2006 at 06:11 PM EDT #
Posted by dagastine on June 09, 2006 at 07:05 PM EDT #
Posted by dagastine on June 09, 2006 at 07:07 PM EDT #
Posted by Mikael Gueck on June 10, 2006 at 01:13 AM EDT #
Posted by Michael van der Westhuizen on June 10, 2006 at 06:03 PM EDT #
Posted by Derek Morr on June 10, 2006 at 11:55 PM EDT #