Is there a better way to optimise the for loop in Javascript

68 Views Asked by At

I wrote

for(var i=0;i<10000;i++){
   for(var j=0;j< 10000;j++){
 }

}

Now this loop takes around 2603 ms in Chrome but takes around 60884 ms in Internet Explorer 11. I want to bring the second number somewhat closer or even remotely comparable to first one.

Now, is there a ChakraCore specific guideline or trick that can get it done faster?

0

There are 0 best solutions below