{"ScriptPreparationCode":"//Add 100,000 elements\r\nvar frag = document.createDocumentFragment();\r\nfor (var i=0; i\u003C10; i\u002B\u002B){\r\n var outSection = document.createElement(\u0027section\u0027);\r\n outSection.id=\u0022secid_\u0022\u002Bi;\r\n for (var j=0; j\u003C100; j\u002B\u002B){\r\n var midDiv = document.createElement(\u0027div\u0027);\r\n midDiv.id=\u0022mdivid_\u0022\u002Bj;\r\n for (var k=0; k\u003C100; k\u002B\u002B){\r\n var inDiv = document.createElement(\u0027div\u0027);\r\n inDiv.id=\u0022divid_\u0022\u002Bk;\r\n midDiv.appendChild(inDiv);\r\n }\r\n outSection.appendChild(midDiv)\r\n }\r\n frag.appendChild(outSection);\r\n}\r\ndocument.body.appendChild(frag);","TestCases":[{"Name":"jQuery","Code":"var a = 0;\r\n$(\u0027section\u0027).each(function () {\r\n a\u002B\u002B;\r\n});","IsDeferred":false},{"Name":"pure JS","Code":"function forEachElement(selector, fn) {\r\n var elements = document.getElementsByTagName(selector);\r\n for (var i = 0; i \u003C elements.length; i\u002B\u002B) fn(elements[i]);\r\n}\r\n\r\nvar a = 0;\r\nforEachElement(\u0027section\u0027, function (el){\r\n a\u002B\u002B;\r\n});","IsDeferred":false},{"Name":"jQuery DIV","Code":"var a = 0;\r\n$(\u0027section\u0027).each(function () {\r\n a\u002B\u002B;\r\n});","IsDeferred":false},{"Name":"pure JS DIV","Code":"function forEachElement(selector, fn) {\r\n var elements = document.getElementsByTagName(selector);\r\n for (var i = 0; i \u003C elements.length; i\u002B\u002B) fn(elements[i]);\r\n}\r\n\r\nvar a = 0;\r\nforEachElement(\u0027div\u0027, function (el){\r\n a\u002B\u002B;\r\n});","IsDeferred":false}]}