render-vs-prerender (v85)

Revision 85 of this benchmark created by light on


Preparation HTML

<canvas id="canvas1" width="641" height="1139"></canvas>
<script>
  var can = document.getElementById('canvas1');
  var ctx = can.getContext('2d');
  
  var can2 = document.createElement('canvas');
  can2.width = 641;
  can2.height = 1139;
  var ctx2 = can2.getContext('2d');
  var img = new Image();
img.src = 'http://dianstartups.sinaapp.com/game/static/img/background.png';
ctx2.drawImage(img, 0,0,641,1139);
  
      
      
  
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
render
ctx.drawImage(img, 0,0);
 
ready
pre-rendered
ctx.drawImage(can2, 0, 0);
    
    
 
ready

Revisions

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