simple-draw

Benchmark created on


Description

Testing if firefox drawimage for performance

Preparation HTML

<canvas id="test" width="800" height="600"></canvas>

Setup

var can = document.getElementById("test");
    ctx = can.getContext('2d');

Test runner

Ready to run.

Testing in
TestOps/sec
drawImage
var img = new Image()

img.onload = function(){
ctx.drawImage(img,0,0);
}

img.src = "https://raw.github.com/BlackScorp/tiled2crafty/gh-pages/kinetic/img/grassland.png";
ready
drawImage, multiple param
var img = new Image()

img.onload = function(){
ctx.drawImage(img,0,0,50,60,0,0,500,600);
}

img.src = "https://raw.github.com/BlackScorp/tiled2crafty/gh-pages/kinetic/img/grassland.png";
ready

Revisions

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