{"ScriptPreparationCode":"// some elemens without id\r\nfor(var i=0; i\u003C5000; \u002B\u002Bi)\r\n testTable.insertRow(-1).insertCell(-1).textContent = \u0027Row #\u0027\u002Bi;\r\n\r\n// some elements with id\r\nvar parent = testTable.parentElement;\r\nfor(var i=0; i\u003C5000; \u002B\u002Bi)\r\n{\r\n var div = document.createElement(\u0027div\u0027);\r\n div.id = \u0027divBefore\u0027\u002Bi;\r\n parent.insertBefore(div, testTable);\r\n \r\n div = document.createElement(\u0027div\u0027);\r\n div.id = \u0027divAfter\u0027\u002Bi;\r\n parent.appendChild(div);\r\n}","TestCases":[{"Name":"getElementById each time","Code":"for(var i=0; i\u003C10000; \u002B\u002Bi)\r\n{\r\n\tvar table = document.getElementById(\u0027testTable\u0027);\r\n\ttable.rows[0].cells[0].textContent = \u0027Test\u0027;\r\n}","IsDeferred":false},{"Name":"Own global variable","Code":"var table = document.getElementById(\u0027testTable\u0027);\r\nfor(var i=0; i\u003C10000; \u002B\u002Bi)\r\n{\r\n\ttable.rows[0].cells[0].textContent = \u0027Test\u0027;\r\n}","IsDeferred":false},{"Name":"Own global variable with equal name","Code":"var testTable = document.getElementById(\u0027testTable\u0027);\r\nfor(var i=0; i\u003C10000; \u002B\u002Bi)\r\n{\r\n\ttestTable.rows[0].cells[0].textContent = \u0027Test\u0027;\r\n}","IsDeferred":false},{"Name":"HTML5 global variable based on id value","Code":"for(var i=0; i\u003C10000; \u002B\u002Bi)\r\n{\r\n\ttestTable.rows[0].cells[0].textContent = \u0027Test\u0027;\r\n}","IsDeferred":false}]}