Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
one year ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 125250.4 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 116512.1 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 103677.2 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 110383.8 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 89438.4 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 100369.5 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 69051.4 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 90232.2 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 100036.3 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 83695.2 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