Canvas test (v6)

Revision 6 of this benchmark created on


Preparation HTML

<canvas id="a" width="256" height="256"></canvas>
<canvas id="b" width="256" height="256"></canvas>
<script>
  var c1 = document.getElementById("a");
  var ctx = c1.getContext("2d");
  var c2 = document.getElementById("b");
  var ctx2 = c2.getContext("2d");
  ctx2.fillStyle = '#000';
  ctx2.fillRect( 0, 0, 300, 300 );
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
01 Image copy
ctx.globalCompositeOperation = 'copy';
ctx.drawImage( c2, 0, 0 );
ready
02 Canvas copy
ctx.globalCompositeOperation = 'source-over';
ctx.drawImage( c2, 0, 0 );
ready

Revisions

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