{"ScriptPreparationCode":null,"TestCases":[{"Name":"Pure JavaScript","Code":"var c = document.createDocumentFragment();\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n var e = document.createElement(\u0022div\u0022);\r\n e.className = \u0022test-div\u0022;\r\n c.appendChild(e);\r\n}\r\nvar elem = document.getElementById(\u0022test\u0022);\r\nelem.appendChild(c);","IsDeferred":false},{"Name":"Jquery","Code":"for (var i=0; i\u003C10; i\u002B\u002B) {\r\n $(\u0022#test\u0022).append($(\u0022\u003Cdiv /\u003E\u0022).addClass(\u0022test-div\u0022));\r\n}","IsDeferred":false},{"Name":"Strings / append","Code":"var s = \u0022\u0022;\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n s \u002B= \u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022;\r\n}\r\n$(\u0022#test\u0022).append(s);","IsDeferred":false},{"Name":"Strings array / append","Code":"var a = [];\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n a.push(\u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022);\r\n}\r\n$(\u0022#test\u0022).append(a.join(\u0022\u0022));","IsDeferred":false},{"Name":"Strings / innerHTML","Code":"var s = \u0022\u0022;\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n s \u002B= \u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022;\r\n}\r\nvar elem = document.getElementById(\u0022test\u0022);\r\nelem.innerHTML = s;","IsDeferred":false},{"Name":"Strings array / innerHTML","Code":"var a = [];\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n a.push(\u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022);\r\n}\r\nvar elem = document.getElementById(\u0022test\u0022);\r\nelem.innerHTML = a.join(\u0022\u0022);","IsDeferred":false},{"Name":"Strings / html","Code":"var s = \u0022\u0022;\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n s \u002B= \u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022;\r\n}\r\n$(\u0022#test\u0022).html(s);","IsDeferred":false},{"Name":"Strings array / html","Code":"var a = [];\r\nfor (var i=0; i\u003C10; i\u002B\u002B) {\r\n a.push(\u0022\u003Cdiv class=\\\u0022test-div\\\u0022\u003E\u003C/div\u003E\u0022);\r\n}\r\n$(\u0022#test\u0022).html(a.join(\u0022\u0022));","IsDeferred":false}]}