{"ScriptPreparationCode":"const canvas = document.getElementById(\u0027app\u0027);\r\nwindow.ctx = canvas.getContext(\u00272d\u0027);\r\n\r\nwindow.image = new Image();\r\nimage.src = \u0060https://img2.baidu.com/it/u=2716120127,557879455\u0026fm=253\u0026fmt=auto\u0026app=138\u0026f=JPG?w=965\u0026h=500\u0060;\r\n\r\nwindow.tempCanvas = document.createElement(\u0027canvas\u0027);\r\n\r\ntempCanvas.width = 965;\r\ntempCanvas.height = 500;\r\n\r\ntempCanvas.getContext(\u00272d\u0027).drawImage(image, 0, 0);","TestCases":[{"Name":"ctx.drawImage(HTMLImageElement)","Code":"for (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n ctx.drawImage(image, 0, 0);\r\n ctx.clearRect(0, 0, 1920, 1080);\r\n}","IsDeferred":false},{"Name":" ctx.drawImage(HTMLCanvasElement)","Code":"for (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n ctx.drawImage(tempCanvas, 0, 0);\r\n ctx.clearRect(0, 0, 1920, 1080);\r\n}","IsDeferred":false}]}