Performance issues with AMD and Intel processors
843811May 23 2005 — edited May 27 2005Dear All,
I have finished and run a benchmarking code which compares my thesis project with another application. I was proud when my code surpassed the older work by 122% percent faster completion. I have run the same code at home and my pride is replaced by curiosity: This time the older work is 50% faster than my code.
-Specs:
My office PC has 2.8GHz Pentium 4 CPU, i865 chipset, 512MB RAM and JDK 1.5.0.
My home PC has Athlon XP 2500+ CPU, nForce2 chipset, 512MB RAM and JDK 1.5.0.
-About code:
My code uses linked lists (not java.util.LinkedList, my own implementation) while the older work uses hash tables (java.util.Hashtable).
-Actual performance:
Average execution time of a command is:
My code w. Intel: 0.038msec, older work w. Intel: 0.083msec.
My code w. AMD: 0.047msec, older work w. AMD: 0.032msec.
I have run the tests on many times on both PC's and I haven't found any bugs either in my code or the older work, they both work as they are supposed to. Do you have any ideas about this performance difference and/or any tips about optimization of Java code for the AMD platform?