render-vs-prerender (v44)

Revision 44 of this benchmark created on


Preparation HTML

<canvas id="canvas1" width="640" height="480">
</canvas>
<script>
var cv1 = document.getElementById("canvas1"),
    ctx = cv1.getContext("2d"),
    img = new Image(),
    cvs;
img.onload = function() {
  cvs = document.createElement("canvas");
  cvs.width = this.width;
  cvs.height = this.height;
  cvs.getContext("2d").drawImage(this, 0, 0);
}
img.src = "http://www.ausmt.org/imagefiles/136/136LEFigure1.png";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
render-image
ctx.drawImage(img, 0, 0);
ready
pre-rendered canvas
ctx.drawImage(cvs, 0, 0);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.