canvasclear (v9)

Revision 9 of this benchmark created on


Preparation HTML

<canvas id="canvas1" width="1300" height="400">
</canvas>
<script>
  var can = document.getElementById('canvas1');
  var ctx = can.getContext('2d');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
setting width
can.width = can.width;
ready
full width height clearing
ctx.clearRect(0, 0, 1300, 400);
ready
partial clearing
ctx.clearRect(0, 0, 1000, 200);
ready

Revisions

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