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 722551.2 Ops/sec
HTMLCanvasElement drawImage HTMLCanvasElement 469793.8 Ops/sec
HTMLCanvasElement drawImage OffscrenCanvas 632916.8 Ops/sec
HTMLCanvasElement drawImage ImageBitmap 630561.8 Ops/sec
OffscreenCanvas draw HTMLImageELement 670662.3 Ops/sec
OffscreenCanvas draw HTMLCanvasElement 546246.6 Ops/sec
OffscreenCanvas draw OffscreenCanvas 620035.5 Ops/sec
OffscreenCanvas draw ImageBitmap 219424.5 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