Canvas anti-aliasing perf loss test (v2)

Revision 2 of this benchmark created on


Description

Test of the cost of canvas' anti aliasing

Preparation HTML

<canvas width="200"" height="200" id="playGround"></canvas>

Setup

ctx = document.getElementById('playGround').getContext('2d');

Test runner

Ready to run.

Testing in
TestOps/sec
Anti aliasing
ctx.beginPath();
ctx.moveTo(.5, .5);
ctx.lineTo(199.5, 199.5);
ctx.stroke();
ready
No anti aliasing
ctx.beginPath();
ctx.moveTo(1, 1);
ctx.lineTo(200, 200);
ctx.stroke();
ready

Revisions

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