Canvas anti-aliasing perf loss test

Benchmark created by Anthony Pigeot on


Description

Test of the cost of canvas' anti aliasing

Preparation HTML

<canvas id="playGround"></canvas>

Setup

ctx = document.getElementById('playGround').getContext('2d');
    mario = new Image();
    mario.src = "http://a35.idata.over-blog.com/3/44/06/96/Bitina-2/Running-Mario.gif";

Test runner

Ready to run.

Testing in
TestOps/sec
Anti aliasing
ctx.drawImage(mario, 0.5, 0.5);
ready
No anti aliasing
ctx.drawImage(mario, 0, 0);
ready

Revisions

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