layered canvases (v12)

Revision 12 of this benchmark created on


Preparation HTML

<canvas id="bg" width="640" height="480" style="position: absolute;"></canvas>
<div style="margin-bottom:300px;"></div>

<script>
  var bg = document.getElementById('bg');
  
  var bg_ctx = bg.getContext('2d');
  
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
layers
bg_ctx.clearRect(0, 0, 64, 64);
bg_ctx.fillRect(0, 0, 64, 64);
ready
no layers
bg_ctx.clearRect(0, 0, 300, 300);
bg_ctx.fillRect(0, 0, 300, 300);
ready
new
bg_ctx.clearRect(0, 0, bg.width, bg.height);
bg_ctx.fillRect(0, 0, 64, 64);
ready

Revisions

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