{"ScriptPreparationCode":null,"TestCases":[{"Name":"JQuery - direct \u002B class","Code":"var list = [], n = 0; \r\nvar newDiv = function(){ \r\n return $(\u0027\u003Cdiv class=\u0022test\u0022\u003E\u0027);\r\n}\r\nwhile(true) { \r\n n\u002B\u002B; \t\r\n list.push(newDiv()); \r\n if(n===1000) \r\n break; \r\n}","IsDeferred":false},{"Name":"JQuery - cloneNode \u002B class","Code":"var list = [],\r\n n = 0,\r\n node = document.createElement(\u0027div\u0027);\r\nvar newDiv = function(){ \r\n\t\tvar newNode = node.cloneNode(false);\r\n newNode.className = [].slice.call(arguments).join(\u0027 \u0027);\r\n return $(node);\r\n}\r\nwhile(true) {\r\n n\u002B\u002B;\r\n \tlist.push(newDiv(\u0022test\u0022));\r\n if(n===1000) \r\n break;\r\n}","IsDeferred":false},{"Name":"prototype.join","Code":"var list = [],\r\n n = 0,\r\n node = document.createElement(\u0027div\u0027);\r\nvar newDiv = function (classname) {\r\n var newNode = node.cloneNode(false);\r\n if (classname !== void 0) \r\n newNode.className = Array.prototype.join.call(arguments, \u0022 \u0022);\r\n return $(newNode);\r\n }\r\nwhile(true) {\r\n n\u002B\u002B;\r\n \tlist.push(newDiv(\u0022test\u0022));\r\n if(n===1000) \r\n break;\r\n}","IsDeferred":false},{"Name":"forcycle","Code":"var list = [],\r\n n = 0,\r\n node = document.createElement(\u0027div\u0027);\r\nvar newDiv = function (classname) {\r\n var newNode = node.cloneNode(false);\r\n if (classname !== void 0) {\r\n var args = new Array(arguments.length);\r\n for (var i = 0, ii = arguments.length; i \u003C ii; i\u002B\u002B) {\r\n args[i] = arguments[i];\r\n }\r\n newNode.className = args.join(\u0027 \u0027);\r\n }\r\n return $(newNode);\r\n }\r\nwhile(true) {\r\n n\u002B\u002B;\r\n \tlist.push(newDiv(\u0022test\u0022));\r\n if(n===1000) \r\n break;\r\n}","IsDeferred":false}]}