blob: 266e38890c85d61050c2b14fb767233fbc21a57f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../resources/runner.js"></script>
<script>
var canvas2D = document.createElement("canvas");
var ctx2D = canvas2D.getContext("2d");
canvas2D.width = canvas2D.height = 1024;
var imageData = new ImageData(canvas2D.width, canvas2D.height);
function putImageDataToCanvas2D() {
ctx2D.putImageData(imageData, 0, 0);
}
PerfTestRunner.measureRunsPerSecond({run: putImageDataToCanvas2D, description: "This bench test checks the speed on putting ImageData to Canvas2D(1024x1024)."});
</script>
</body>
</html>