IE performance: TryCatchWithErrors and LayerMovement Test - by Real McCoy

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


ID 750836 Comments
Status Closed Workarounds
Type Bug Repros 4
Opened 6/25/2012 8:04:40 PM
Access Restriction Public

Description

On this test, http://jsbin.com/buruseri/, IE10 RP performs poorly compared to other browsers especially in TryCatch and LayerMovement stress tests.

Note: The result may vary on each run but the results shown below give you a general idea about the difference in performance on same PC.

Time taken to accomplish this test by various browsers is as follow:

Results:

Safari 5.1.2

Try/Catch with errors — 8
Layer movement — 5
Random number engine — 6
Math engine — 16
DOM speed — 8
Array functions — 3
String functions — 3
Ajax declaration — 3

Total Duration	52 ms

--------------------------------------------------
Firefox 13

Try/Catch with errors — 18
Layer movement — 4
Random number engine — 3
Math engine — 5
DOM speed — 9
Array functions — 2
String functions — 3
Ajax declaration — 10

Total Duration 	54ms

--------------------------------------------------
Chrome 19:

Try/Catch with errors — 33
Layer movement — 17
Random number engine — 1
Math engine — 3
DOM speed — 7
Array functions — 6
String functions — 2
Ajax declaration — 5

Total Duration	74 ms
 
--------------------------------------------------
IE 9.0.7

Try/Catch with errors — 61 
Layer movement — 76 
Random number engine — 5 
Math engine — 6 
DOM speed — 147 
Array functions — 2 
String functions — 2 
Ajax declaration — 3 

Total Duration	302 ms 

--------------------------------------------------
IE 10RP

Try/Catch with errors — 132 
Layer movement — 97 
Random number engine — 6 
Math engine — 8 
DOM speed — 50 
Array functions — 4 
String functions — 2 
Ajax declaration — 2
 
Total Duration	301ms 




Apparently, in the following three chunks of code, IE9 and IE10-RP show perform poorly:

// TryCatch

for( var i = 0; i <= 4000; i++ )    {
	try { throw new Error("Error"); } catch (e) { }
}


// LayerMovement

var layer1 = document.getElementById('layer1');
for( var i = 0; i <= 8000; i++ )    {
	layer1.style.x = i + 'px';
	layer1.style.y = i + 'px';
}


// DOM Speed (this issue is covered in feedback# 680378 in detail)

for( var i = 0; i <= 1000; i++ )    {
	document.getElementById('speed_dom').innerHTML = "Testing... ("+i+"/1000)";
}
Sign in to post a comment.
Posted by Robert McKee on 3/5/2015 at 8:25 AM
Seems Chrome and Firefox have changed significantly. Chrome 40 - 175ms, Firefox 35.0.1 - 275ms, IE 11 - 320ms. IE is still slower, but not to the degree it was.
Posted by Microsoft on 7/9/2012 at 9:14 AM
Thank you for your feedback:

At this time we do not plan on optimizing for these micro-benchmarks. Our focus has been on real world scenarios that impact customers. In many cases, improving the performance of micro-benchmarks will negatively impact real world scenarios including loading and interacting with websites. You can find more information about our focus areas here: <http://blogs.msdn.com/b/ie/archive/2011/02/08/focusing-on-real-world-web-performance-with-internet-explorer-9.aspx>

If you are encountering real world scenarios where IE10 is slower than competing browsers, we would love to hear about those. We welcome more feedback and look forward to hearing from you again soon.

Best regards,
The Internet Explorer Team