I wrote a simple program in Java in order to test the speed of java in Windows and Linux. All that my program does is to run some loops some times. I used windows xp sp2 and fedora core 3 64bit with 64bit java. None of the systems had any other load while executing the program.
In windows the program finished in 1:36.73 and in Linux in 2:12.96. I didn't expect to see so big difference (36 seconds) especially because Linux was a 64bit system.
Does anyone know if execution of java is slower in Linux or this was just a coincidence for my program?
Here is the source code for anyone who has a dual boot system and would like to test it. Please let me know what the results were on your system. I have an amd 64bit 3400+ with512MB of RAM.
http://egnatia.ee.auth.gr/~adns/benchmark.java