Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 1117214.6 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 1764647.8 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 1522201.8 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 1147570.1 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 1068023.5 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 1343595.0 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 1699355.5 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 1389468.8 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 1205337.1 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 1254422.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