canvas-clearRect-size (v17)

Revision 17 of this benchmark created on


Description

clear rect vs width

Preparation HTML

<script>
  var c = document.createElement('canvas');
  c.width = c.height = 450;
document.body.appendChild( c );
  var ctx = c.getContext('2d');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
clearRect
ctx.clearRect(0, 0, 450, 450);
ready
clearRect self
ctx.clearRect(0, 0, 5, 5);
ready

Revisions

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