Given this test for 1,000,000 iteration cycles, no difference.
var test = true;
var count = 1000000;
var stop, start = new Date();
while(count--) {
if(test) ;
else ;
}
stop = new Date();
alert(stop - start);
Tested in Firefox, Safari and IE8.
Other processes running on the system that run the test several times in each browser return the same total change in milliseconds, regardless !.
source
share