{"ScriptPreparationCode":"var canvas = document.getElementById(\u0027testcanvas\u0027);\r\nvar ctx = canvas.getContext(\u00272d\u0027);\r\nvar plants = [];\r\nfor (var i = 0; i \u003C 50; i\u002B\u002B) {\r\n plants.push({\r\n x: Math.random() * 1000,\r\n y: Math.random() * 1000,\r\n size: Math.random()\r\n });\r\n}","TestCases":[{"Name":"Circles (drawing every time)","Code":"ctx.fillStile = \u0027green\u0027;\r\nfor (var i in plants) {\r\n ctx.beginPath();\r\n ctx.arc(\r\n plants[i].x,\r\n plants[i].y,\r\n plants[i].size * 5,\r\n 0,\r\n 2 * Math.PI\r\n );\r\n ctx.fill();\r\n}","IsDeferred":false},{"Name":"Circles (drawing in the end)","Code":"ctx.fillStile = \u0027green\u0027;\r\nfor (var i in plants) {\r\n ctx.beginPath();\r\n ctx.arc(\r\n plants[i].x,\r\n plants[i].y,\r\n plants[i].size * 5,\r\n 0,\r\n 2 * Math.PI\r\n );\r\n}\r\nctx.fill();","IsDeferred":false}]}