Browse Source

More benchmarks

v1.x
Tj Holowaychuk 15 years ago
parent
commit
92ffcef965
  1. 8
      benchmarks/run.js

8
benchmarks/run.js

@ -113,6 +113,14 @@ bm('moveTo() / arc() / stroke()', function(){
ctx.stroke(); ctx.stroke();
}); });
bm('createImageData(300,300)', function(){
ctx.createImageData(300,300);
});
bm('getImageData(0,0,100,100)', function(){
ctx.getImageData(0,0,100,100);
});
// bm('PNGStream 200x200', 50, function(done){ // bm('PNGStream 200x200', 50, function(done){
// var stream = canvas.createSyncPNGStream(); // var stream = canvas.createSyncPNGStream();
// stream.on('data', function(chunk){ // stream.on('data', function(chunk){

Loading…
Cancel
Save