{"ScriptPreparationCode":"$c = document.getElementById(\u0027c\u0027);\r\n$ctx = $c.getContext(\u00272d\u0027);\r\n$ctx.clearRect(0, 0, 800, 300);\r\n$px = $ctx.createImageData(1, 1);\r\n$pxls = [];\r\nfor (var i=0; i\u003C10000; \u002B\u002Bi) $pxls.push({\r\n x: Math.random() * 800 \u003C\u003C 0,\r\n y: Math.random() * 300 \u003C\u003C 0\r\n});\r\n$i = 0;","TestCases":[{"Name":"fillRect","Code":"$ctx.fillStyle = \u0027rgba(128, 128, 128, 1)\u0027;\r\nfor (var i=500;i--;){\r\nvar px = $pxls[$i\u002B\u002B % 10000];\r\n$ctx.fillRect(px.x, px.y, 1, 1);\r\n}","IsDeferred":false},{"Name":"1\u00D71 Image Data","Code":"for (var i=500;i--;){\r\nvar px=$pxls[$i\u002B\u002B % 10000], d=$px.data;\r\nd[0] = 128;\r\nd[1] = 128;\r\nd[2] = 128;\r\nd[3] = 1;\r\n$ctx.putImageData($px, px.x, px.y);\r\n}","IsDeferred":false}]}