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 drawImage HTMLImageElement 10689.5 Ops/sec
HTMLCanvasElement drawImage HTMLCanvasElement 10143.2 Ops/sec
HTMLCanvasElement drawImage OffscrenCanvas 10123.2 Ops/sec
HTMLCanvasElement drawImage ImageBitmap 9484.8 Ops/sec
OffscreenCanvas draw HTMLImageELement 9350.4 Ops/sec
OffscreenCanvas draw HTMLCanvasElement 10067.8 Ops/sec
OffscreenCanvas draw OffscreenCanvas 9329.3 Ops/sec
OffscreenCanvas draw ImageBitmap 10143.0 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