fill-stroke canvas

JavaScript performance comparison

Revision 2 of this test case created by

Preparation code

<canvas id='testy'></canvas>
<script>
  var canvas = document.getElementById('testy'),
  ctx = canvas.getContext('2d');
  
</script>
    

Preparation code output

<canvas id='testy'></canvas>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
fill
ctx.fillStyle = '#556677';
ctx.fillRect(0, 0, 10, 10);
ctx.fill();
pending…
stroke
ctx.strokeStyle = '#556677';
ctx.beginPath();
ctx.moveTo(0, 5);
ctx.lineTo(10, 5);
ctx.stroke();
ctx.closePath();
pending…

Compare results of other browsers

Revisions

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

0 Comments