Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 10945.3 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 11296.4 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 11345.8 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 11457.2 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 10387.7 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 10524.5 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 9633.7 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 9241.0 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 9049.9 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 9250.3 Ops/sec
Script Preparation code:
Tests:
  • HTMLCanvasElement 2d drawImage HTMLImageElement

  • HTMLCanvasElement 2d drawImage HTMLCanvasElement

  • HTMLCanvasElement 2d drawImage OffscrenCanvas

  • HTMLCanvasElement 2d drawImage ImageBitmap

  • OffscreenCanvas 2d drawImage HTMLImageELement

  • OffscreenCanvas 2d drawImage HTMLCanvasElement

  • OffscreenCanvas 2d drawImage OffscreenCanvas

  • OffscreenCanvas 2d drawImage ImageBitmap

  • HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap

  • OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap


;