Wednesday, February 11, 2009

Make your Java run 2X faster than C/C++ - without any coding for FREE

Looking around for Java and C/C++ comparisons I came across the Java Server runtime. I guess this has been around for a while now but just missed it for some reason. When running your Java apps, if you use the -server argument, your app runs and performs almost twice as fast as C/C++ applications of the same nature.



The server argument does take up a lot more RAM then the default client argument, but the performance boost is huge. I would not mind having all my Java apps set to run in server mode by default on newer Core2 with 4 GB machines.

The original article for C++ can be found here. The C benchmark is in Word doc format and can be downloaded here.

1 comment:

Gibran said...

Pretty cool stud man!