From 92ffcef965c0124a9c3f27564b36a419a8c37e29 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 17 Nov 2010 11:20:39 -0800 Subject: [PATCH] More benchmarks --- benchmarks/run.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/benchmarks/run.js b/benchmarks/run.js index 58811d6..e6f9881 100644 --- a/benchmarks/run.js +++ b/benchmarks/run.js @@ -113,6 +113,14 @@ bm('moveTo() / arc() / stroke()', function(){ 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){ // var stream = canvas.createSyncPNGStream(); // stream.on('data', function(chunk){