drawImage from different sources

JavaScript performance comparison

Revision 73 of this test case created by

Preparation code

<canvas id="cnv_big" width="640" height="480"></canvas>
<canvas id="cnv_small" width="200" height="200"></canvas>
<img id="img" src="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png" style="display: none" />
      
<script>
Benchmark.prototype.setup = function() {
  // globals
  var g_ctx_big = document.getElementById('cnv_big').getContext('2d');
  var g_ctx_small = document.getElementById('cnv_small').getContext('2d');
  
  var g_img = document.getElementById('img');
  
  
  

};
</script>

Preparation code output

<canvas id="cnv_big" width="640" height="480"></canvas> <canvas id="cnv_small" width="200" height="200"></canvas> <img id="img" src="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png" style="display: none" />

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec

Revisions

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

0 Comments